This web application is a single-script bookmark manager. It was created to provide a simple storage for links to web articles that one can read later. The server part requires a web server with the PHP+SQLite support. The client side relies only on HTML4+CSS2 and some non-crucial bits of JS+CSS3 which makes the pages accessible from any common web browser.
-
Upload file
index.phpon the web server. -
Access
index.php?installfrom a web browser and click the Install button. This step initializes the SQLite database. -
Optional: Protect access to the page with HTTP basic authentication:
Note: These steps are tailored for the Apache HTTP Server.
-
Create a user and set the password:
$ htpasswd -c .htpasswd <username>(The command will prompt for the password.)
-
Upload the created file on the server. The file should be ideally saved in a location where it is available to the HTTP server but not actually served to the world. If this is not possible and the file needs to be stored in a public web directory then the server should be configured to not serve this file, for instance, by denying access to it in the main
http.confconfiguration file or using.htaccess. The providedhtaccesstemplate implements such a rule. -
Copy the
htaccesstemplate to.htaccessand change theAuthUserFilevalue to the absolute path of the.htpasswdfile from the previous step. -
Upload file
.htaccesson the server next to theindex.phpscript.
-
HTTP basic authentication does not provide facility to manage logging out and
this web application does not implement any of the possible workarounds for this
issue. Instead, logout can be achieved by the user by changing the URL to the
application to include a non-existent username, for instance,
https://logout@book/. This overrides the previous username which effectively
causes a logout.
This project is released under the terms of the MIT License.