How I block comment spam
You would think that by having custom written blogging software (only two other blogs out there are using this code), and not allowing HTML in comments, that comment spammers would not waste their time on me. But they do.
Why do they bother with me?
Even though their URL will not be hyperlinked on my blog giving them pagerank, they still spam because they are hoping for the following:
- They want me to click on the link before I delete it.
- They are hoping that people subscribed to the comment thread will click on the link.
- They are planting keywords on my pages so that someone searching for the term in google, may find my page, and copy and paste the url.
What I do to block comment spam
Here's what I do to block comment spam on this blog:
- Check HTTP Referrer to make sure it's coming from my site. I know some people like to turn this off in their browser, but they won't be able to post comments unless they turn it on.
- If the comment contains a HTML link I reject it, giving the user a detailed message that tells them to just post the url.
- Check for a set of bad words - my list is very small only about 10 words currently.
- Check for [url] - a lot of comment spammers try to pass the links as [url]http://foo[/url]
- Look for more than 5 url's in the comment. Comment spammers often try to post 10-20 urls at a time, so I just reject them. I use this regular expression
- Battling Comment Spam - January 31, 2007
- Over 90% of trackbacks were spam - March 2, 2006
- Google Blog Search - Not Impressed - September 14, 2005
- Trackback Salt - March 30, 2005
Pls tell me where to place that code in Word press sites
enhanced my knowledge regarding topic and plus has given
alot of ideas which I can think on.
So I would say thank you to the blog owner for providing
this amazing information.
and some info , there very helpfull ,tell them micky h give you there number
- Why is my cron.daily script not running?
- Announcing FuseGuard Version 3
- CFSummit 2017
- Java Unlimited Strength Crypto Policy for Java 9 or 1.8.0_151
- Java 9 Security Enhancements
- Upcoming CFML Conferences in April 2017
- CFSummit 2016 Slides
- Securing Legacy CFML - dev.Objective() 2016 Slides