Forum Moderators: DixonJones
I am *so* sick of referer spam. I get a lot from poker sites. For 4 months, I've tried all kinds of variations on my htaccess rewrite cond, but poker spam keeps getting through.
Could someone please tell me *what* I need to put in there to make is so that if *any* URL tries to get in my referer logs that has the word "poker" in *any* position in the URL - it gets denied access?
I would really appreciate this.
I have a list that seems to be working great for other things, but I just can't get this poker like to work at all.
Currently, this is what I have for my list (I've made it *very* short, so you don't have to see the repitition of things - it's a really long list -I just want to give a general idea of what's going on here.)
In all honesty, I don't know what some of the things do here - I pieced together my list from tutorials and searching for the last few months, and it seems to work - I just can't get past the "poker" thing.
So here goes:
RewriteEngine on
RewriteCond %{HTTP_REFERER} ^http://(www\.)?iconsurf\.com/ [NC]
RewriteRule \.(jpe?g¦gif¦bmp¦png)$ - [F]
RewriteCond %{HTTP_REFERER}!.*mywebsite\.com/.*$ [NC]
RewriteCond %{HTTP_REFERER}!.*mysubdomain\.com/.*$ [NC]
RewriteCond %{HTTP_REFERER}!^http://([^/]+)google\..*$ [NC]
RewriteCond %{HTTP_REFERER}!^http://([^/]+)altavista\..*$ [NC]
RewriteCond %{HTTP_REFERER}!^http://([^/]+)yahoo\..*$ [NC]
RewriteCond %{HTTP_REFERER}!^http://([^/]+)msn\..*$ [NC]
RewriteCond %{HTTP_REFERER}!^http://([^/]+)a9\..*$ [NC]
RewriteCond %{HTTP_REFERER}!^http://([^/]+)lycos\..*$ [NC]
RewriteCond %{REQUEST_URI}!/403.shtml$ [NC]
RewriteCond %{HTTP_REFERER} ^http://(www\.)?.*(-¦.)?adult(-¦.).*$ [OR]
RewriteCond %{HTTP_REFERER} ^http://(www\.)?.*(-¦.)?nude(-¦.).*$ [OR]
RewriteCond %{HTTP_REFERER} ^http://(www\.)?.*(-¦.)?porn(-¦.).*$ [OR]
^http://(www\.)?.*accepted.cc$ [OR]
RewriteCond %{HTTP_REFERER} ^http://(www\.)?.*episodesusdbz/.*$ [OR]
RewriteCond %{HTTP_REFERER} ^http://(www\.)?advancedmoneyloans.*$ [OR]
RewriteCond %{HTTP_REFERER} ^http://(www\.)?zanax(-¦.).*$ [OR]
RewriteCond %{HTTP_REFERER} ^http://(www\.)?(-¦.)zindagi(-¦.).*$ [NC]
RewriteRule .* - [F]
now, the "iconsurf.com" is a website I've noticed has been stealing my bandwidth by linking to an image that is necessary on my site. No matter what I've done, I can't seem to stop him from doing this - and it irks me. So if anyone has a way to stop this from happening, too - I'd appreciate it muchly.
The first set of condition supposedly does what I want done with the "poker" issue - but that's not working. I don't know if it's because I have the "poker" one showing up laster on or what.
If anyone has any suggestions, I'd *really* appreciate it! Thanks!