Forum Moderators: phranque
I can't block IP ranges, as they come from usual ISP's. They are not from China, Russia, or amazonaws servers - that's not a surprise I also can't use IP's when I have to block hacking attempts from PC's trying to scan known vulnerabilities, as many also come from normal ISP ranges.That's what bot-nets typically are... compromised ISP accounts, or servers.
RewriteCond %{HTTP_REFERER} ^https?://(l|m|www)\.facebook
RewriteRule ^games/(tower|palace|canal|color)/?$ https://www.example.com/games/online.html [R=301,L]
Explanation: certain pages use so many supporting files, I can actually tell by the size of the day's log file (in K) how many people have visited. Some of those are people who just blindly click every link they see, so it's taking up their time and my bandwidth for nothing. So when there's a request with a FB referer I redirect to a closely related page--using <10 instead of 100+ supporting files, and no scripts--where humans can stop and think about whether they really want to be there. And where robots, if any, miss out on the chance to learn a bunch of filenames.
RewriteCond %{HTTP_REFERER} m\.facebook\.com [NC]
RewriteRule ^article_targeted_by_fb.php$ http://www.othersite.com?information [NC,L]