Forum Moderators: phranque
Anyways, they have shut my databases down for two days and it took me the better part of four hours to track it down so I'm irate. Things are working again and here is how I did it. I added some simple line to .htaccess.
RewriteCond %{HTTP_REFERER} (casino) [OR]
RewriteCond %{HTTP_REFERER} (gambling) [OR]
RewriteCond %{HTTP_REFERER} (poker) [OR]
This is the first time I've used to .htacess to block referrers (as I usually block by user agent). How does it look? I've tested it and it seems to be blocking what I want blocked.
Normally, I don't care about referrer spam as I don't make my logs public but this time they had a very serious detrimental effect on my site. The 'attack' came as thousands of keyword-combination urls centered on gambling, poker, and casino that redirected to other casino sites. Each keyword-stuffed url reuqested thousands of php based urls. This massive traffic caused a system overload.
don't forget:
RewriteEngine on