From 327c5d62947186593c81ea75906e30c0491c4fb3 Mon Sep 17 00:00:00 2001 From: rugk Date: Sun, 3 Jul 2016 19:35:35 +0200 Subject: [PATCH] Add robots.txt note as per 2.6. of https://defuse.ca/audits/zerobin.htm & add similar note for .htaccess --- Installation.md | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/Installation.md b/Installation.md index c726f4a..e99a88f 100644 --- a/Installation.md +++ b/Installation.md @@ -102,4 +102,14 @@ For reference or if you want to create the table schema for yourself: CREATE TABLE prefix_config ( id CHAR(16) NOT NULL, value TEXT, PRIMARY KEY (id) ); - INSERT INTO prefix_config VALUES('VERSION', '0.22'); \ No newline at end of file + INSERT INTO prefix_config VALUES('VERSION', '0.22'); + +### Web server configuration + +* A `robots.txt` file is provided in the root dir of ZeroBin. It disallows all robots from accessing your pastes. + It is recommend to place it into the root of your web directory if you have installed ZeroBin in a subdirectory. + Make sure to adjust it, so that the file paths match your installation. Of course also adjust the file if you + already use a `robots.txt`. +* A `.htaccess.disabled` is provided in the root dir of ZeroBin. It blocks some known robots and link-scanning bots. + If you use Apache, you can rename the file to `.htaccess` to enable this feature. If you use another webserver, + you have to configure it manually to do the same. \ No newline at end of file