Forum Moderators: phranque
RewriteEngine on
RewriteCond %{HTTP_USER_AGENT} ^Wget
RewriteRule ^.* - [F]
Any suggestion or pointers at this point would be greatly appreciated. I am relatively new to the mod_rewrite world and still learning.
Thanks,
David
Server error!
The server encountered an internal error and was unable to complete your request. Either the server is overloaded or there was an error in a CGI script.
If you think this is a server error, please contact the webmaster
Error 500
Error Log:
.../photos/.htaccess: RewriteEngine not allowed here
The lazy ones are the ones that I currently want to stop.
Try making the code more specific by including a filetype that will prevent problems serving error pages.
RewriteEngine on
RewriteCond %{HTTP_USER_AGENT} ^Wget
RewriteRule \.jpg$ - [F]
Jim
For the technically-savvy intruders, there are less-efficient but more powerful approaches such as the various 'bad-bot' trap scripts posted here on WebmasterWorld which control access based on robots.txt enforcement and frequency of access. Beyond that, you have passwords, cookies, and sessions. Even those methods are not 100% reliable.
But that doesn't mean you shouldn't try. And should you end up prosecuting a copyright case, the fact that you did try and the defendant had to make an effort to defeat your safeguards will weigh positively on the outcome.
Jim
The simple task of blocking by user agent and referrer will easily eliminate 50-60% of my pilferers, possibly even a higher percentage than that. The more technical pilferers will find a way to get what they want using one method or another, so trying to prevent them is really a lost cause.
David