boardom Forum Index boardom
b2 message board
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

How to avert SPAM bots
Goto page Previous  1, 2, 3, 4, 5, 6, 7, 8, 9  Next
 
Post new topic   Reply to topic    boardom Forum Index -> Hacks
View previous topic :: View next topic  
Author Message
Cyberian75



Joined: 26 Sep 2002
Posts: 1274
Location: Oregon

PostPosted: Sat Dec 11, 2004 6:33 pm    Post subject: Re: Variables Reply with quote

daveo123 wrote:
....but I don't think I have a variable redundency.


WRONG!
Code:
if ($IP != md5($user_ip)) {

exit("Your comment has been filtered as a SPAM!");

}


I'm really no longer going to provide support for this.
_________________
Michael P.

Back to top
View user's profile Send private message AIM Address
maimiti



Joined: 16 Sep 2003
Posts: 20

PostPosted: Sat Dec 11, 2004 11:21 pm    Post subject: Reply with quote

I installed this one today and then it turned out to be impossible to add any comments what so ever. It filtered out everything as SPAM.
Back to top
View user's profile Send private message
Cyberian75



Joined: 26 Sep 2002
Posts: 1274
Location: Oregon

PostPosted: Sun Dec 12, 2004 6:36 am    Post subject: Reply with quote

TO ALL:

This script seems to work for all others, and it's working fine on my own blog. You just need to follow the instruction to the last character without making any errors on your end.
_________________
Michael P.

Back to top
View user's profile Send private message AIM Address
Sigg3



Joined: 03 Jul 2003
Posts: 795
Location: Oslo, Norway

PostPosted: Mon Dec 13, 2004 11:33 am    Post subject: Reply with quote

I agree, it works brilliantly.
And along with blacklist _and_ word verifier (now added to b2anti-spam) I don't receive any spam at all.

I ask people to respect Michael's request here, since it works. Then if it doesn't you a) have done something wrong (read the steps over again) or b) use an edited version of the files in question. Check out if there are hacks that involves changes to the files prior to the installation of this mod.

You can download the default ones from http://sigg3.net/cafelog
_________________
Sigg3.net - You know you're worth it! | b2 Cafelog Resource Center
Back to top
View user's profile Send private message Visit poster's website MSN Messenger
asiansoul



Joined: 29 Mar 2004
Posts: 4

PostPosted: Wed Dec 15, 2004 1:37 am    Post subject: modify the hack Reply with quote

i used this hack and it blocked A LOT of the valid entries. i received lots of complaints about it. any alternative? or can u change the script so that it doesn't block valid entries.
_________________
Ivy
http://mezza-9.net
Back to top
View user's profile Send private message Visit poster's website MSN Messenger
Cyberian75



Joined: 26 Sep 2002
Posts: 1274
Location: Oregon

PostPosted: Wed Dec 15, 2004 2:56 am    Post subject: Re: modify the hack Reply with quote

asiansoul wrote:
i used this hack and it blocked A LOT of the valid entries. i received lots of complaints about it. any alternative? or can u change the script so that it doesn't block valid entries.


That doesn't make sense at all, unless you've put more words into the "wordlist" array for it to filter.
_________________
Michael P.

Back to top
View user's profile Send private message AIM Address
Cyberian75



Joined: 26 Sep 2002
Posts: 1274
Location: Oregon

PostPosted: Thu Dec 16, 2004 3:29 am    Post subject: Reply with quote

If you want it to automatically add the spammer to the blacklist, add the following:
Code:
mysql_query("INSERT INTO $tableblacklist (IP,name,URL) VALUES ('$REMOTE_ADDR','$author','$url')");
right before
Code:
exit("Your comment has been filtered as a SPAM!");

_________________
Michael P.

Back to top
View user's profile Send private message AIM Address
Sigg3



Joined: 03 Jul 2003
Posts: 795
Location: Oslo, Norway

PostPosted: Thu Dec 16, 2004 2:04 pm    Post subject: Reply with quote

Great. I'll add it to the Avert_Spam and b2blacklist txts.
_________________
Sigg3.net - You know you're worth it! | b2 Cafelog Resource Center
Back to top
View user's profile Send private message Visit poster's website MSN Messenger
crab



Joined: 03 May 2004
Posts: 3

PostPosted: Fri Dec 17, 2004 7:09 am    Post subject: Reply with quote

This is exactly what I did:

Code:


<input type="hidden" name="verify" value="<?php echo md5($REMOTE_ADDR); ?>">





Then in your "b2comments.post..php" file after the "$user_ip" variable near line 50:

Code:


$IP = $HTTP_POST_VARS["verify"];
if ($IP != md5($user_ip)) {
   exit("Your comment has been filtered as a SPAM!");
}



now I have this at the top of my page and on the comments popup:

Warning: ob_start(): output handler 'ob_gzhandler' conflicts with 'zlib output compression' in /home/cbaron/public_html/blog/b2-include/b2functions.php on line 598

I don't know php very well at all so I have no idea what it means or how to fix it. Any help would be appreciated.
Back to top
View user's profile Send private message
Sigg3



Joined: 03 Jul 2003
Posts: 795
Location: Oslo, Norway

PostPosted: Fri Dec 17, 2004 9:36 am    Post subject: Reply with quote

I think it's the Gzip Compression Issue in Wordpress/b2 and NOT related to the AVERT BOTs mod.

Here's a fix for it.
_________________
Sigg3.net - You know you're worth it! | b2 Cafelog Resource Center
Back to top
View user's profile Send private message Visit poster's website MSN Messenger
BDKR



Joined: 04 Jan 2003
Posts: 26
Location: Clearwater, Florida

PostPosted: Mon Dec 20, 2004 6:44 pm    Post subject: Reply with quote

Well, first off, I know Michael isn't supporting this anymore. That's cool as I'm not looking for support for the mod itself. This is more discussion on the topic and a question or two.

Cazorp wrote:
They are back.. I got hit for 173 spams this morning... I have added that spam protection by cyberian75, but they still got through.. Am i doing something wrong???

Where do I exactly put the following line:
<input type="hidden" name="verify" value="<?php echo md5(date("z", time())); ?>">

...

Any help is greatly appreciated, I I just don't know how this all works.. Sad


More for the tech guys:

If you look at something like Snoopy (http://sourceforge.net/projects/snoopy/) you quickly realize that it's a rather sophisticated bit of code that in the hands of a good coder can probably overcome the mod spoken of above. There is a method in the snoopy class that can request a URL and another that can parse the html elements, and more importantly in this case, the form elements. That said, the script, using this class (or a similar one) could request the form and from the information gathered put together everything needful to make a successful post in spite of the mod.

However, it can't overcome a turing test (unless the answer of the turing test is in the form).

On to other things. My approach at this time is two fold with another element that I will be adding in the future.

NOW
1) I scan for terms in the author and url fields at post time. If I find them, I fail the post and log the info t a file. To the bot, it would seem as if the post was a success (I'm trying to avoid retaliation).
2) I run a cron job that cleans the b2comments table nightly based on search for certain authors or URL's. This is to deal with things that might slip through for one reason or another or are the result of an actual human posting and not yet being know as a comment spammer.

FUTURE
3) Scan the actual comment itself for links to know comment span URLS. This process will also make a decision based on the actual number of links in the comment.
4) As an option, lock out commenting on older posts.

So far, everything that I've got going is working well, but I'd like to know if there is a universal list of authors and urls out there somewhere. I could update it myself, but I would never be able to keep up as one individual. A lot of people adding to the list here or there would be great.

Another approach to dealing with comment spam that is 'out there' and under development (I'm sorry, I can't remember the link at this point in time) is a system where all blog commenters us a common log in system. Everyone will have to be know to that system to post a comment on your blog. Know spammers that sign up would eventually be purged from that system based on input from the site admins. I personally like this idea working in conjunction with the above.

Anyway, I don't have time to support anyone using these, but if you are interested, my filter file and cron job for cleaning spam can be found at http://mgaps.highsidecafe.com/tools . The filter.txt file has two functions I use for checking the author and url fields as well as my jargon and php filters. Also, the code I use for generating the image I use in my turing test is button.txt in the same directory.

Lastly, somone could possibly write a script to break my turing test becuase of how I pass the key to the script that generates the image. This is something that I will work on in time, but for now, I'm a little ahead of the spammers.

Cheers,
BDKR
Back to top
View user's profile Send private message Visit poster's website AIM Address MSN Messenger
koew



Joined: 07 Aug 2003
Posts: 4
Location: Norway

PostPosted: Sun Dec 26, 2004 11:22 pm    Post subject: Reply with quote

-Delete this post-
_________________
"Arguing on the internet is like running in the special olympics.
Even if you win, you are still retarded."


Last edited by koew on Fri Dec 31, 2004 4:03 pm; edited 2 times in total
Back to top
View user's profile Send private message Visit poster's website
Cyberian75



Joined: 26 Sep 2002
Posts: 1274
Location: Oregon

PostPosted: Tue Dec 28, 2004 10:16 pm    Post subject: Reply with quote

BDKR wrote:
FUTURE
3) Scan the actual comment itself for links to know comment span URLS. This process will also make a decision based on the actual number of links in the comment.
4) As an option, lock out commenting on older posts.


Actually, I'm doing all those with the modifications I've made to my copy of comments post file.
_________________
Michael P.

Back to top
View user's profile Send private message AIM Address
BDKR



Joined: 04 Jan 2003
Posts: 26
Location: Clearwater, Florida

PostPosted: Sun Jan 02, 2005 3:58 am    Post subject: Reply with quote

Cyberian75 wrote:
BDKR wrote:
FUTURE
3) Scan the actual comment itself for links to know comment span URLS. This process will also make a decision based on the actual number of links in the comment.
4) As an option, lock out commenting on older posts.


Actually, I'm doing all those with the modifications I've made to my copy of comments post file.


Awesome! Please let me know when you're done. Smile
Back to top
View user's profile Send private message Visit poster's website AIM Address MSN Messenger
Cyberian75



Joined: 26 Sep 2002
Posts: 1274
Location: Oregon

PostPosted: Tue Jan 04, 2005 8:42 pm    Post subject: Reply with quote

BDKR wrote:
Awesome! Please let me know when you're done. Smile


It incorporates a few of my "hacks," though. You want to see a copy of it?
_________________
Michael P.

Back to top
View user's profile Send private message AIM Address
Display posts from previous:   
Post new topic   Reply to topic    boardom Forum Index -> Hacks All times are GMT + 1 Hour
Goto page Previous  1, 2, 3, 4, 5, 6, 7, 8, 9  Next
Page 8 of 9

 
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


Powered by phpBB 2 © 2001, 2002 phpBB Group