Page 1 of 1

Reference Blocker

Posted: Sun Oct 16, 2005 10:17 pm
by Dream
Do you have plugin to block visitor from referer ?

I found that most who come to my blog is BOT that want they Referer show in my Top Referer Sidebar. It take a lot of bandwidth and my host close my site cause this bot use data transfer very much.

I download OUTDATE plug-in cause I want try to edit code to block user from referer. But I don't know how should I start. I didn't found where code I should edit to block referer.

Posted: Sun Oct 16, 2005 10:22 pm
by Dream
and...
Cause Spammer is not use same ip. I can't block from SPAM PROTECTOR.
But I think if block from Referer. it will be block all Spammer who try to add his url to Top Referer List.

Re: Reference Blocker

Posted: Mon Oct 17, 2005 9:21 am
by garvinhicking
Sadly serendipity cannot block referers on its own. You can only do that using mod_rewrite; there are several tutorials out there on how to block referrers using that way. Since it is a very generic approach and has not much to do with serendipity, there is no "out of the box" plugin available.

If you would do it as a s9y plugin, it would defeat the means of referrer blocking, because all requests would need to go through to s9y, and thus are already causing the traffic and CPU time.

Thus you need to block it on a much earlier level, which is only possible with mod_rewrite. PHP solutions cannot block this.

Internal s9y referrer tracking (not blocking!) can be edited with the "Block referrers" Configuration Option. But this only prevents listing special hosts in the "Referrers" sidebar plugin, and does not block hosts. (See above again for the reasons *g*)

Best regards,
Garvin