How to Prevent Downloading of your Entire Website |
Preventing Web Site Downloading Using robots.txtThe first step is to disallow the downloading programs in your robots.txt file. To do this, you will need to define which bad robots you wish to disallow. Disallowing bad programs in robots.txt does not prevent all web site downloading, because many bad programs simply ignore the contents of robots.txt and do what they want to do. Preventing Web Site Downloading Using User Agent Blocking in httpd.confAnother method is to exclude the downloading programs user agent in httpd.conf. Add every agent you wish to exclude to httpd.conf:
User agent blocking also does not prevent all web site downloading, because the user can delete his user agent or spoof it to appear to be Internet Explorer or another common browser. Preventing Web Site Downloading Using User Agent Blocking in PHPIf the content you are attempting to protect is in PHP, you may be interested in the user agent blocking technique described in Deny Spambots and Prevent Email Harvesting. |
Discuss How to Prevent Downloading of your Entire Website in the forums.

