Adding leech protection

Preventing leechers from accessing password protected web directories:

RewriteEngine on
RewriteCond ${LeechProtect:/home/droidozo/public_html/wiki:%{REMOTE_USER}:%{REMOTE_ADDR}:4} leech
RewriteRule .* http://wikipedia.com

Here, /home/droidozo/public_html/wiki is protected. Users may only login 4 times in a two hour period. Else they are redirected to wikipedia.com (any url)


You are reading this post on Joel G Mathew’s tech blog. Joel's personal blog is the Eyrie, hosted here.