Need help thwarting spambots to speed up the forum again

Questions and comments
jacob
Site Admin
Posts: 16001
Joined: Fri Jun 28, 2013 8:38 pm
Location: USA, Zone 5b, Koppen Dfa, Elev. 620ft, Walkscore 77
Contact:

Post by jacob »


dot_com_vet
Posts: 603
Joined: Mon Jan 31, 2011 2:07 am

Post by dot_com_vet »

How about putting the site behind cloudflare? www.cloudflare.com
Easy, free, and I believe it will take care of this.


My_Brain_Gets_Itchy
Posts: 267
Joined: Fri Mar 02, 2012 5:29 pm

Post by My_Brain_Gets_Itchy »

Hi Jacob,
If it is just the registration page (not the login), you can temporarily disable/remove/delete the page or form and put up a message and do registration manually via a temporary email address(yeah, sucky solution but it should immediately stop the problem)?
Not sure if you tried either of the two below articles, but hope this may help:
http://www.thesitewizard.com/apache/blo ... cess.shtml
http://en.linuxreviews.org/HOWTO_stop_a ... _.htaccess


jacob
Site Admin
Posts: 16001
Joined: Fri Jun 28, 2013 8:38 pm
Location: USA, Zone 5b, Koppen Dfa, Elev. 620ft, Walkscore 77
Contact:

Post by jacob »

The IPs are mostly unique (probably dynamic). The IPs don't tend to repeat more than 10 times each, but there are thousands, so I don't think I can filter out individual ones. Even filtering out repeats would not solve the problem because most of the IPs are unique. I estimate ~5 bots based on the time-patterns (they're fairly regular) and how they identify themselves (they're all pretending to be browsers).
Some numbers for accessing the registration page

Bots: 1500

Unique IPs: 1200

Real users: 1-2


buzz
Posts: 115
Joined: Thu Sep 30, 2010 11:16 pm

Post by buzz »

Ban by user agent:

RewriteCond %{HTTP_USER_AGENT} ^UserAgentHere [NC]

RewriteRule . abuse.txt [L]
Ban by uri request:

RewriteCond %{REQUEST_URI} page.html [NC]

RewriteRule . abuse.txt [L]
Ban by referrer:

RewriteCond %{HTTP_REFERER} !^http://(www\.)?spam\.com/ [NC]

RewriteRule . abuse.txt [L]
Ban by ip:

order allow,deny

deny from 192.168.0.1

allow from all
Ban by isp:

order allow,deny

deny from some-evil-isp.com

allow from all
Hope this helps. You have to find a pattern to avoid banning legitimate users.
Since it's only one page, you may consider renaming the actual page and all links to it (temporary fix) or secure the form with htpasswd and leave a notification near the registration link what the user and password is.


dot_com_vet
Posts: 603
Joined: Mon Jan 31, 2011 2:07 am

Post by dot_com_vet »

Jacob, did you look into Cloudflare? It would really fix this whole mess in about five minutes. (I do this for a living.)
PM me if you have questions.


tylerrr
Posts: 679
Joined: Tue Dec 13, 2011 3:32 am
Location: Boston

Post by tylerrr »

I emailed Jacob a solution that should work. I never got an email back. Did you get it Jacob?


nawor
Posts: 28
Joined: Wed Nov 14, 2012 3:07 am

Post by nawor »

The forum is very slow again today. The suggestion of Cloudflare is a good one. I just changed one of my sites to run through it. Sign up for a free account, change your DNS servers to their DNS servers, and that's it. It took me 5 minutes. Excellent service.


jacob
Site Admin
Posts: 16001
Joined: Fri Jun 28, 2013 8:38 pm
Location: USA, Zone 5b, Koppen Dfa, Elev. 620ft, Walkscore 77
Contact:

Post by jacob »

I switched cloudflare yesterday evening or at least I think I did. It's still showing as inactive.


dot_com_vet
Posts: 603
Joined: Mon Jan 31, 2011 2:07 am

Post by dot_com_vet »

I'd say give it the 24 hours to update to Cloudflare, then contact your hosting support if it's still inactive. Ping me if you need me. :-)


jacob
Site Admin
Posts: 16001
Joined: Fri Jun 28, 2013 8:38 pm
Location: USA, Zone 5b, Koppen Dfa, Elev. 620ft, Walkscore 77
Contact:

Post by jacob »

Still inactive. Contacted host support.


jacob
Site Admin
Posts: 16001
Joined: Fri Jun 28, 2013 8:38 pm
Location: USA, Zone 5b, Koppen Dfa, Elev. 620ft, Walkscore 77
Contact:

Post by jacob »

Cloudflare is now Active.
But that broke the blog! I get a "Firefox has detected that the server is redirecting the request for this address in a way that will never complete." which I think has to do with some mix up between .htaccess and WP settings. I'm trying to figure out how to access the blog without getting caught in the loop.


George the original one
Posts: 5406
Joined: Wed Jul 28, 2010 3:28 am
Location: Wettest corner of Orygun

Post by George the original one »

With IE, I got an error from Cloudflare saying the blog site was down and they didn't have a cached version of the page.


jacob
Site Admin
Posts: 16001
Joined: Fri Jun 28, 2013 8:38 pm
Location: USA, Zone 5b, Koppen Dfa, Elev. 620ft, Walkscore 77
Contact:

Post by jacob »

Yeah, it seems to be a DNS issue, where the automatic setup included a bunch of www's that should be there and wp being set up to redirect www.early... to early... thus looping infinitely.
Fixing this (without screwing it up) is beyond me so I'll wait for support to get back to me on this. Lets hope the world does end in the mean time.


jacob
Site Admin
Posts: 16001
Joined: Fri Jun 28, 2013 8:38 pm
Location: USA, Zone 5b, Koppen Dfa, Elev. 620ft, Walkscore 77
Contact:

Post by jacob »

Temporary fix by switching cloudflare off from the blog and (presumably) keeping in on on the blog.


dot_com_vet
Posts: 603
Joined: Mon Jan 31, 2011 2:07 am

Post by dot_com_vet »

Jacob, that's what I'm seeing in dns. The forum is behind Cloudflare, the blog is not.
If something else needs done, and support can't help, let me know.


henrik
Posts: 757
Joined: Fri Apr 13, 2012 5:58 pm
Location: EE

Post by henrik »

Approximately since the move to Cloudflare, I am not able to get updates from the forum via RSS. The feed seems to work fine when I add it, but then fails to get any more updates. No problem with the blog feed. Is anyone else experiencing the same?


jacob
Site Admin
Posts: 16001
Joined: Fri Jun 28, 2013 8:38 pm
Location: USA, Zone 5b, Koppen Dfa, Elev. 620ft, Walkscore 77
Contact:

Post by jacob »

@henrik - I think it's on your end. The RSS feed from the forum to the blog (see the blog's left sidebar) is still updating.


Spartan_Warrior
Posts: 1659
Joined: Fri Dec 02, 2011 1:24 am

Post by Spartan_Warrior »

So... not to prod or anything, but I'm still experiencing constant hanging, slowness, and the "Cloudflare back-up" page that George described upthread. Much as I like ya all, ten minutes of waiting/refreshing to navigate the forum each time is becoming not worth it. :/


Spartan_Warrior
Posts: 1659
Joined: Fri Dec 02, 2011 1:24 am

Post by Spartan_Warrior »

So... not to prod or anything, but I'm still experiencing constant hanging, slowness, and the "Cloudflare back-up" page that George described upthread while navigating the forum. Much as I like ya all, ten minutes of waiting/refreshing to move from page to page on the forum is becoming not worth it. :/
In fact I'm going on ten minutes just trying to post this...


Post Reply