Whoo's anti-spam techniques in one simple thread
Goto page Previous  1, 2, 3, 4, 5, 6, 7, 8  Next
 
Post new topic   This topic is locked: you cannot edit posts or make replies.   printer-friendly view    b2evolution Forum Index -> Plugins & Extensions -> Fighting spam!
View previous topic :: View next topic  
Author Message
whoo
Forum Queen
Forum Queen

Joined: 25 Dec 2004
Posts: 1293
Reputation: 100.1 add or subtract from this member's reputationadd or subtract from this member's reputation
votes: 19

PostPosted: Thu Apr 14, 2005 20:51    Post subject: Reply with quote

you're welcome Smile

for what its worth, wordpresss has about 20 plugins that provide some sort of deterrant to spam, and I raised quite a stink with a few ppl posting an entry about wordpress and spam on my blog (plugins being under-rated, and an htaccess being the answer). Today i got a bit of a reprieve when I found another more-intelligent-than-I, wp user that also uses an .htacess and has ditched plugins all together. His .htaccess is up for looking at too @ http://www.tomrafteryit.net/htaccess.txt

_________________

Do you use last.fm?
Try out my nifty badge generator!
Back to top
View user's profile Send private message Visit poster's website
Bryce I
New Poster
New Poster

Joined: 06 Jan 2005
Posts: 7
Reputation: 21.8Reputation: 21.8 add or subtract from this member's reputationadd or subtract from this member's reputation

PostPosted: Thu Apr 14, 2005 22:02    Post subject: another wp convert Reply with quote

Well, whoo, also for what it's worth, I pointed a friend of mine who maintains a large group blog running wp to this thread, and he is now eternally grateful, so chalk up one more convert.
Back to top
View user's profile Send private message
whoo
Janitor
Janitor

Joined: 25 Dec 2004
Posts: 1293
Reputation: 100.1 add or subtract from this member's reputationadd or subtract from this member's reputation
votes: 19

PostPosted: Fri Apr 15, 2005 0:25    Post subject: Reply with quote

woohhhooo! ya know, bryce, i really love plugins, and i truly love wordpress, BUT if you spend any time reading their support forums, the majority of the spam plugins are like Vioxx; they might work, they might not, and they all cause liver damage. Shocked

You would think with all of those plugins available, that there would not be ANY threads about spam over there, and yet there still are, every day. Sad My goal if I were developing any sort of web based app would be to eliminate the need for ANY spam threads, regardless of the form the solution took. Thats just me, though.

_________________

Do you use last.fm?
Try out my nifty badge generator!
Back to top
View user's profile Send private message Visit poster's website
captsolo
Seasoned Poster
Seasoned Poster

Joined: 19 Aug 2003
Posts: 70
Reputation: 67.6Reputation: 67.6Reputation: 67.6Reputation: 67.6Reputation: 67.6Reputation: 67.6Reputation: 67.6 add or subtract from this member's reputationadd or subtract from this member's reputation

PostPosted: Tue Apr 19, 2005 13:35    Post subject: Reply with quote

Whoo, after moving /htsrv to another location I was getting quite a lot error messages (in apache error log) that trackback.php was not found. This does not influence the work of b2evo, but still i'd prefer to get rid of these messages.

Would it make sense to redirect those coming to the old /htsrv location? To their own IP address or something? And if yes, what would be the appropriate .htaccess lines?

_________________
Best regards,
CaptSolo
Back to top
View user's profile Send private message Visit poster's website
whoo
Forum Queen
Forum Queen

Joined: 25 Dec 2004
Posts: 1293
Reputation: 100.1 add or subtract from this member's reputationadd or subtract from this member's reputation
votes: 19

PostPosted: Wed Apr 20, 2005 0:07    Post subject: Reply with quote

captsolo wrote:
Whoo, after moving /htsrv to another location I was getting quite a lot error messages (in apache error log) that trackback.php was not found. This does not influence the work of b2evo, but still i'd prefer to get rid of these messages.

Would it make sense to redirect those coming to the old /htsrv location? To their own IP address or something? And if yes, what would be the appropriate .htaccess lines?


ahhh, so you are seeing spam attempts at the old location for trackbacks? yes you can send them back to their own ip

use this in the old dir :

Code:

RewriteEngine on
RewriteRule ^(.*) http://%{REMOTE_ADDR}/ [R=301,L]



note that you will still see them in your apache logs..

you can remove the "R=301," (just leave the L) also, but youre still gonna see them.

_________________

Do you use last.fm?
Try out my nifty badge generator!
Back to top
View user's profile Send private message Visit poster's website
Bryce I
New Poster
New Poster

Joined: 06 Jan 2005
Posts: 7
Reputation: 21.8Reputation: 21.8 add or subtract from this member's reputationadd or subtract from this member's reputation

PostPosted: Thu Apr 21, 2005 8:35    Post subject: candygenius no longer available Reply with quote

FYI, if anyone has read this far, and is looking for information linked to in point #5 in whoo's original post re: pinapple proxy, that page is no longer publicly available, although whoo's directions should still work.

However, I'm guessing that the pinapple spammer has changed something recently. Can anyone confirm? I'm not being targeted, but a friend of mine is, and I've noticed a lot of spam this morning on his blog.
Back to top
View user's profile Send private message
a.shane
New Poster
New Poster

Joined: 21 Jan 2005
Posts: 5
Reputation: 15.8Reputation: 15.8 add or subtract from this member's reputationadd or subtract from this member's reputation

PostPosted: Sat May 14, 2005 0:47    Post subject: Odd happenings with my .htaccess Reply with quote

Thanks for this thread! I finally got sick enough of spam to get into the hardcore prevention. I slamed into it head first and now I have a head ache.

What went wrong:
I have to use the www in www.racerx.info now. Before the www wasn't needed.

RewriteCond %{HTTP_REFERER} type lines like in Whoo's original post in .htaccess seem to catch ALL links. Even if I hand type the address.
I'm guessing my server doesn't support mod-rewrite?
I tried this test from Whoo to another person and it did not work for me. My page loads normaly instead of loading Whoo's as it should.
Code:
RewriteCond %{HTTP_REFERER} !^$
RewriteCond %{HTTP_REFERER} !^http://www.geencommentaar.nl.*$ [NC]
RewriteRule ^(.*) http://www.village-idiot.org/ [R=301,L]


I settled on the .htaccess Kiesow posted for people with out mod-rewrite. I'll use that untill I get Micfo to turn on mod-rewrite. Has anyone expanded on Kiesow's version? I can't be as good as Whoo's. Its just to short! Smile

While I'm wating on Micfo, anyone know how to get my url to work with or with out the WWW?

-Shane
www.racerx.info
Back to top
View user's profile Send private message
Dan
New Poster
New Poster

Joined: 16 May 2005
Posts: 11
Reputation: 12 add or subtract from this member's reputationadd or subtract from this member's reputation

PostPosted: Tue May 31, 2005 10:19    Post subject: Don't like blacklists? Reply with quote

I'm not a fan of blacklists. They steal my time (in upkeep) and my webhost's CPU usage (in execution).

The following htaccess entry would block any referrer spam I've received to date.
Code:
# Try to prevent referrer spam
RewriteCond %{HTTP_REFERER} "!^http://www.yourdomain.com/.*$" [NC]
RewriteCond %{QUERY_STRING} "disp=stats"
#RewriteRule .* - [F]
RewriteRule ^(.*) http://%{REMOTE_ADDR}/ [R=301,L]


The commented out rule would be an alternative to the rule I'm using (it gives a 403 error instead of a 301 redirect back to the source).

Maybe this is just a temporary solution, but all referrer spam I've seen (so far) has targetted the stats display page. What is the experience of other users?
Back to top
View user's profile Send private message Visit poster's website
Ioo
New Poster
New Poster

Joined: 09 Mar 2005
Posts: 24
Reputation: 14.5 add or subtract from this member's reputationadd or subtract from this member's reputation

PostPosted: Tue May 31, 2005 16:48    Post subject: Reply with quote

Okay I added the

Code:
# Try to prevent referrer spam
RewriteCond %{HTTP_REFERER} "!^http://www.bushsamerica.com/.*$" [NC]
RewriteCond %{QUERY_STRING} "disp=stats"
#RewriteRule .* - [F]
RewriteRule ^(.*) http://%{REMOTE_ADDR}/ [R=301,L]


to my .htaccess

I am still getting span from there, so I ask... what am I doing wrong?
Back to top
View user's profile Send private message
Dan
New Poster
New Poster

Joined: 16 May 2005
Posts: 11
Reputation: 12 add or subtract from this member's reputationadd or subtract from this member's reputation

PostPosted: Tue May 31, 2005 17:08    Post subject: Reply with quote

Ioo

You did not give much background. You have Apache with mod_rewrite? .htaccess is in your document root? Maybe change "disp=stats" to ^.*disp=stats.*$ -- shouldn't matter, I don't think.
Back to top
View user's profile Send private message Visit poster's website
Ioo
New Poster
New Poster

Joined: 09 Mar 2005
Posts: 24
Reputation: 14.5 add or subtract from this member's reputationadd or subtract from this member's reputation

PostPosted: Wed Jun 01, 2005 5:14    Post subject: Reply with quote

Dan,

I will have to ask the sys admin, about the rewrite thing, because I am not sure.. HTML I am there, php and I am kinda there, this part hear, I have no clue what so ever Sad

I will find out ant let you know, thanks
Back to top
View user's profile Send private message
Elpie
Seasoned Poster
Seasoned Poster

Joined: 17 Jun 2005
Posts: 40
Reputation: 11.5 add or subtract from this member's reputationadd or subtract from this member's reputation

PostPosted: Fri Jun 17, 2005 21:56    Post subject: Reply with quote

Hi all,
Thanks Whoo for starting an excellent thread.

I have an .htaccess which I would appreciate feedback on.

Quote:
# Apache configuration for the blog folder

# this will select the default blog template to be displayed
# if the URL is just .../blogs/
<IfModule mod_dir.c>
DirectoryIndex index.php
</IfModule>


# this will make register globals off in b2's directory
# just put a '#' sign before these three lines if you don't want that
<IfModule mod_php4.c>
php_flag register_globals off
</IfModule>


# this is used to make b2 produce links like http://example.com/archives/m/200209
# if you renamed the file 'archives' to another name, please change it here too
<Files archives>
ForceType application/x-httpd-php
</Files>

# Last updated 30th May 05

RewriteEngine On
RewriteBase /

# Fix for comments
RewriteCond %{HTTP_REFERER} !^http://mydomain.com/.*$ [NC]
RewriteCond %{REQUEST_URI} ^.*comment_post\.php$
RewriteRule .* - [F]

# Bad referers and pinapple start here
# Get the pinapple proxy first
RewriteCond %{HTTP:VIA} ^.+pinappleproxy [NC,OR]

# Atrivo Technologies
deny from 69.50.160.0/19

# Bad TLDs not covered above
RewriteCond %{HTTP_REFERER} \.biz [NC,OR]
RewriteCond %{HTTP_REFERER} \.ru [NC,OR]

# Try to prevent referrer spam
RewriteCond %{HTTP_REFERER} "!^http://www.mydomain.com/.*$" [NC]
RewriteCond %{QUERY_STRING} "disp=stats"
#RewriteRule .* - [F]
RewriteRule ^(.*) http://%{REMOTE_ADDR}/ [R=301,L]


I noticed that Atrivo has not been mentioned in other posts.
I recently moved my blog (still within the same domain, but different name) which made it easier to see who is hitting it. In the first 10 minutes after the change I had a number of IP's in the Atrivo block appearing in my error logs.

If you want to see what sites are hosted by Atrivo, check this out...
http://www.bluetack.co.uk/foru...topic=9119

There is more info on http://www.rojisan.com/spam/ar...vocom.html

and http://www.thebishop.net/geodo...lpers.html

In the 24 hours after my blog was moved I was hit every 10 seconds by 5 IP's within the Atrivo block. Since I added the "deny" = nothing.
If you are getting hit on by any of the domains listed in that first link I gave I would recommend you take steps to block. Seems like this host has been around a while and has no intention of enforcing its own AUP.
Back to top
View user's profile Send private message
whoo
Forum Mom
Forum Mom

Joined: 25 Dec 2004
Posts: 1293
Reputation: 100.1 add or subtract from this member's reputationadd or subtract from this member's reputation
votes: 19

PostPosted: Sat Jun 18, 2005 10:52    Post subject: Reply with quote

WOW! I cant say that I have ever been hit by them but I will be on the look out now. Nice catch Smile
_________________

Do you use last.fm?
Try out my nifty badge generator!
Back to top
View user's profile Send private message Visit poster's website
personman
SuperGuru
SuperGuru

Joined: 09 Feb 2005
Posts: 2178
Reputation: 116.9 add or subtract from this member's reputationadd or subtract from this member's reputation
votes: 15

PostPosted: Wed Jul 13, 2005 9:01    Post subject: Reply with quote

I wondered if that might be the case. Can't he just add

Code:
deny from 82.***.25.**


to his .htaccess file? Of course, you'll need to use the real ip address. That will prevent this person from any access to your web site. If his IP changes (because his ISP uses dynamic addressing or becuase he goes through a proxy) then this will stop working.
Back to top
View user's profile Send private message Visit poster's website
DirkVanuitDelft
New Poster
New Poster

Joined: 31 May 2005
Posts: 1
Reputation: 11.4 add or subtract from this member's reputationadd or subtract from this member's reputation

PostPosted: Wed Jul 13, 2005 9:33    Post subject: Reply with quote

Works like a charm, I'm so happy! Thanks a lot, guys! Smile.
Back to top
View user's profile Send private message Visit poster's website
Display posts from previous:   
Post new topic   This topic is locked: you cannot edit posts or make replies.   printer-friendly view    b2evolution Forum Index -> Fighting spam! All times are GMT - 5 Hours
Goto page Previous  1, 2, 3, 4, 5, 6, 7, 8  Next
Page 2 of 8


 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
b2evolution Support Forum RSS Feed Forums powered by php Bulletin Board