![]() |
htaccess help
One of my paysites is getting hammered by password lists. While I am redirecting my 401 & 403 traffic, I would like to keep them off the site entirely since they are sucking up all the free trailers in the free area.
Can somebody please advise me how to redirect this traffic by referral? |
Very usefull tool:
http://www.clockwatchers.com/htaccess_tool.html Another great tool, to search for domains: http://sexzity.net/domains/ It is new and free for adult webmasters - try it! |
RewriteEngine On
RewriteCond %{HTTP_REFERER} ^http://hotlinker1.com/* [NC,OR] RewriteCond %{HTTP_REFERER} ^http://hotlinker2.com/* [NC] RewriteRule /* http://www.popuphell.com [R,L] Something like that. You should not have an OR on the last RewriteCond, I've done that mistake couple of times :) |
nicer way to do it than referer based. add code that drops a user cookie say something like encrypted timestamp and then check for it when serving the mpg by putting the mpg link through a cgi script.
also make sure your content is only servable by the script and is in a directory that is unreachable to the webserver. or you can put in something like the paypal security system (pls retype numbers that you see sort of thing) |
also this
RewriteEngine on RewriteMap hosts-deny txt:/etc/hosts.deny RewriteCond ${hosts-deny:%{REMOTE_HOST}|NOT-FOUND} !=NOT-FOUND [OR] RewriteCond ${hosts-deny:%{REMOTE_ADDR}|NOT-FOUND} !=NOT-FOUND RewriteRule ^/.* - [F] THe /etc/hosts.deny is a suggestion, you may use whatever you choose. :) |
A very wise man taught me something many many moons ago.
KISS - Keep It Simple Stupid :thumbsup |
trying to help him out. as for simplicity, sometimes too much simplicity can hurt you.
|
Now by putting the htaccess in my free area, am I going to bring the site to a crawl?
I appreciate everyone's help here! |
Quote:
|
Quote:
|
Quote:
|
| All times are GMT -7. The time now is 09:09 PM. |
Powered by vBulletin® Version 3.8.8
Copyright ©2000 - 2026, vBulletin Solutions, Inc.
©2000-, AI Media Network Inc123