Live data from Hacker News

How to beat comment spam

dendory.net

61–70 of 107 posts

Re: How to beat comment spam

#61
post #56
post #36

Earlier quoted context omitted.

Maybe the barrier to posting a comment should be low if you don't have a hyperlink but if you include one then you have to jump through some hoops (captcha's, etc).

I implemented that with some success. Much more successful was to simply require Javascript.

Interesting. Why do the bots run with JS turned off?

Re: How to beat comment spam

#62
With 5 lines of PHP I was able to block 94,94% of the spam on a WordPress blog. I simply checked how long time it took for reading my article, writing and submitting a comment. Less than 10 seconds = block with a friendly message. Code and more details here: http://www.jimwestergren.com/a-new-approach-to-block-web-spa...

Re: How to beat comment spam

#63
post #61
post #56

Earlier quoted context omitted.

I implemented that with some success. Much more successful was to simply require Javascript.

Interesting. Why do the bots run with JS turned off?

To be clear, we're talking about an automated process that is looking for forms to fill out. It's far easier and faster to simply scrape the HTML of a page and look for the and tags to figure out what to submit than to actually fire up something that resembles a real browser.

Re: How to beat comment spam

#64
post #21

You accept comment submission via GET requests? I may not have reverse engineered it fully, but something like this will allow me to post images around the internet that actually create comments on your site by the IP of the visitor. http://dendory.net/blog.php?id=5078058e&cn=Kudos&cp=... />

You can do that with POST too if the site doesn't have CSRF protection ;)

Re: How to beat comment spam

#65
Yup. You just have to make your system a bit unlike everyone else's. I just hid my normal comment field with css, and made a new, visible one with a different name. Any comment that came in with the old parameter name was chucked. Done and done.

Re: How to beat comment spam

#66
post #64
post #21

You accept comment submission via GET requests? I may not have reverse engineered it fully, but something like this will allow me to post images around the internet that actually create comments on your site by the IP of the visitor. http://dendory.net/blog.php?id=5078058e&cn=Kudos&cp=... />

You can do that with POST too if the site doesn't have CSRF protection ;)

You cannot do it in drive-by format like you can with a GET. It's passive and can be posted almost anywhere, message boards, email, Facebook.

Re: How to beat comment spam

#67
post #66
post #64

Earlier quoted context omitted.

You can do that with POST too if the site doesn't have CSRF protection ;)

You cannot do it in drive-by format like you can with a GET. It's passive and can be posted almost anywhere, message boards, email, Facebook.

Drive-by format, that might have to go in my hacker news dictionary of awesome.

Re: How to beat comment spam

#68
post #21

You accept comment submission via GET requests? I may not have reverse engineered it fully, but something like this will allow me to post images around the internet that actually create comments on your site by the IP of the visitor. http://dendory.net/blog.php?id=5078058e&cn=Kudos&cp=... />

Step 1: Link to a dynamically generated comment from my website

Step 2: Google, Bing, and others index my site

Step 3: Every bot that crawls my site is now a spambot

Re: How to beat comment spam

#69
post #66
post #64

Earlier quoted context omitted.

You can do that with POST too if the site doesn't have CSRF protection ;)

You cannot do it in drive-by format like you can with a GET. It's passive and can be posted almost anywhere, message boards, email, Facebook.

You can with simple JS posting a hidden iframe. This obviously won't work on 3rd party sites but works just fine from sites you control.

Re: How to beat comment spam

#70

I recently set up a WP site and forum for a product my brothers are trying to sell. We're not allowing commenting on WP, but obviously have to allow people to post on the forum. The forum software offered a couple of (unofficial) anti-spam plugins, but they were not effective at all. Decided to try re-captcha, but found that to be equally ineffective (hadn't read about just how broken re-captcha is until this inciden…

That seems clever but is actually a bad idea. I often browse the web with vimium and no mouse movement. I wouldn't be able to comment on your blog. There are better ways of using JS to prevent spam.
Post reply on HN