Forum Moderators: open
Is there a way to block those altogether from accessing a site? Or at least not going any further than the first page they hit?
RewriteCond %{HTTP_REFERER} (milf) [NC,OR]
RewriteCond %{HTTP_REFERER} (x x x) [NC,OR]
RewriteRule .* - [F]
to block the referral spammers, which will work for you too if all of your people are sending referrers.
If I am not mistaken, I got this code a while back off webmasterworld. :)
They aren't all unwelcome and not all are a PITA. Most visitors are 100% legitimate and more than welcome. If someone comes in from search using a search phrase such as "discount yellow widgets" or "yellow widget stores," then it's a living, breathing human being and they'll find what they're looking for. But if they arrive with the single search word "widgets" then it's software running for either data mining (no biggie) or to scrape for MFA sites, and the latter are a nuisance and represent a hazard for some sites if they go far enough, which many do.
I do know there's a way to sniff for s/e referral query strings and then process accordingly, but it was a long time ago, so my memory on it is very dim.
>>If I am not mistaken, I got this code a while back off webmasterworld.
Jake, I've been spending a lot of time "reading" in the code forums at WebmasterWorld (which I heartily recommend, rather than just copying and pasting), and unless I can "read" what something is doing, I won't use it until I know what it'll do.
RewriteCond %{HTTP_REFERER} (milf) [NC,OR]
RewriteCond %{HTTP_REFERER} (x x x) [NC,OR]
RewriteRule .* - [F]
[edited by: Marcia at 10:49 am (utc) on Feb. 18, 2008]
And I do not copy/paste anything until I believe it won't break my site either. Only posted the reference as a working, live example that already works. :)
I use it myself, which is why I mentioned "I got this code a while back off webmasterworld" -- not to claim this as my work.
Believe me, I do not spend my time looking for ways to make myself look smart by answering questions I don't understand.
By the way you described your problem.. the remedy sounded as simple as the htaccess filter I use to block spam bots, that is the only reason I posted it.
By the way you described your problem.. the remedy sounded as simple as the htaccess filter I use to block spam bots, that is the only reason I posted it.
Thanks, will do!