Please note!

This is an archived, inactive copy of
"Of course! mod_rewrite!"

Please do not link to this page.


July 13, 2004

Of course! mod_rewrite!

Posted by bopuc at July 13, 2004 09:23 PM

One simple way to reduce comment spam

Adriaan thought up of one more very powerful way to stop comment spam (assuming your blog is on a server you have access too... and is running Apache... and the .htaccess directive is on...)

Simply have the webserver deny requests to whatever does the comment processing, if the request comes from anywhere other than the site itself!

Bravo!

Comments

Well this isn't rocket science, it's a common way to prevent hotlinking of images for example... and sadly, the referer is easy to spoof (most comment spammers do it).

There still isn't a perfect remedy to automated comment spamming.
The best thing is still to rename your comments script to a unusual filename, change the field names to something else, etc... in other words customize it.

Posted by: Patrick at July 13, 2004 10:07 PM

Patrick:
Yeah I know. It is one of many methods. Best to use as many as you can...

:)

Posted by: Boris Anthony at July 13, 2004 10:12 PM

Good point. :)

Posted by: Patrick at July 13, 2004 10:14 PM