He's spamming my site with comments! how do i block him?
Goto page 1, 2, 3  Next
 
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.   printer-friendly view    b2evolution Forum Index -> Obsolete Forum Threads
View previous topic :: View next topic  
Author Message
msafi
New Poster
New Poster

Joined: 18 Sep 2004
Posts: 35
Reputation: 20.6Reputation: 20.6 add or subtract from this member's reputationadd or subtract from this member's reputation

PostPosted: Sat Jan 15, 2005 23:57    Post subject: he's spamming my site with comments! how do i block him? Reply with quote

my website is full of spam comments now. like 15 spam comments all advertising **** products. how do i block the a$$h0le?

i'm sure this has been discussed before. but instead of getting angry with me for repeating the question, can you direct me to the discussion thread? i searched but i couldn't find it.

thanks,
Back to top
View user's profile Send private message
EdB
/bb|[^b]{2}/

Joined: 05 Jan 2004
Posts: 7123
Reputation: 140.9 add or subtract from this member's reputationadd or subtract from this member's reputation
votes: 90

PostPosted: Sun Jan 16, 2005 1:56    Post subject: Reply with quote

Sometimes the spammer is kind enough to include their link in the "author url" field, but often times not. Most of them write nonsense with every third or fourth word linked to a url. Often the url is a subdir of a domain, meaning "foobar.blahblah.nnn" then "nonsense.blahblah.nnn" then "garbage.blahblah.nnn". They're easily wiped. Look at the comment (click the edit link for easiest access to the full url they are linking) and say to yourself 'I think I'll just delete and ban and report blahblah.nnn'. Now go to your antispam tab and type in 'blahblah.nnn' and click on "nail this useless mofo to an inverted cross" (though that's not the exact text...). It will find the offending comment(s) and give you the chance to delete and ban and report.

Do it. Delete them and ban them and report them.

Oh and if they happened to be kind enough to include 'blahblah.nnn' in the comment author url field you'll have a ban symbol to facilitate the process. Generally speaking though you'll want to see the most efficent way to ban them, and that will be blahblah.nnn instead of any given subdomain associated with blahblah.nnn.

Personally when I get to ban one I get this really cheap thrill out of it. Like some sort of digital payback, ya know?
Back to top
View user's profile Send private message
msafi
New Poster
New Poster

Joined: 18 Sep 2004
Posts: 35
Reputation: 20.6Reputation: 20.6 add or subtract from this member's reputationadd or subtract from this member's reputation

PostPosted: Sun Jan 16, 2005 2:12    Post subject: Reply with quote

Thanks EdB. Always helpful.

BTW, is there an option in b2evo to ban ip addresses?
Back to top
View user's profile Send private message
mattbta
Seasoned Poster
Seasoned Poster

Joined: 20 Jun 2004
Posts: 87
Reputation: 25.9Reputation: 25.9Reputation: 25.9 add or subtract from this member's reputationadd or subtract from this member's reputation

PostPosted: Sun Jan 16, 2005 10:24    Post subject: Reply with quote

I've also implemented a captcha for comments so that a random number code is displayed to the user and if they don't enter THAT number, the comment doesn't post. Since impementation - ZERO comment spam.
Back to top
View user's profile Send private message Send e-mail Visit poster's website
kiesow
Hooked :)
Hooked :)

Joined: 23 Jan 2004
Posts: 255
Reputation: 36.5Reputation: 36.5Reputation: 36.5Reputation: 36.5 add or subtract from this member's reputationadd or subtract from this member's reputation

PostPosted: Sun Jan 16, 2005 10:24    Post subject: Reply with quote

msafi wrote:

BTW, is there an option in b2evo to ban ip addresses?


not yet
Back to top
View user's profile Send private message Visit poster's website
s7uar7
New Poster
New Poster

Joined: 30 Sep 2003
Posts: 20
Reputation: 28.4Reputation: 28.4Reputation: 28.4 add or subtract from this member's reputationadd or subtract from this member's reputation
votes: 1

PostPosted: Sun Jan 16, 2005 12:31    Post subject: Reply with quote

mattbta wrote:
I've also implemented a captcha for comments so that a random number code is displayed to the user and if they don't enter THAT number, the comment doesn't post


Any chance of posting the code for that mattbta? That's exactly what I need on my site.
Back to top
View user's profile Send private message
mattbta
Seasoned Poster
Seasoned Poster

Joined: 20 Jun 2004
Posts: 87
Reputation: 25.9Reputation: 25.9Reputation: 25.9 add or subtract from this member's reputationadd or subtract from this member's reputation

PostPosted: Sun Jan 16, 2005 13:10    Post subject: Reply with quote

Yeah - I can do post it. It'll take some time to pretty it up for prime-time.
Back to top
View user's profile Send private message Send e-mail Visit poster's website
whoo
Big Sister
Big Sister

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: Sun Jan 16, 2005 13:10    Post subject: Reply with quote

there are a few really simple things that can deter comment spam..

1.maatba is using the same thing im using, and did use on my public b2evo site. you can grab the files here: http://www.village-idiot.org/a...revisted/. The original site is here: http://www.gudlyf.com/index.php?p=376

I did not include installation instructions.. the plugin is made for wordpress and it took quite a few file edits to get it to work

2. the other simple thing is to rename the file that is responsible for the http_post of any comments -- spammers arent actually visiting your site, they know the names of the files, they look for those, all the items are remotely submitted

3. another idea, similar to captcha but easier to do if your especially lazy, is just to require an extra field, like your name.
For instance, You have a input box .. next to the box you say
Tom's first name : _____

They have to put Tom in the box

Believe it or not, that works, as long as you check it before the (comment) form is submitted.

--

By the way, None of the above methods will prevent referer spamming, just comment spamming. my .htaccess is publically available on my site in several entries (its an ongoing problem, despite the fact that my stats arent public) to combat simple referer spamming.

I have not gotten ANY comment spam since renaming the file responsible for comment submission-- if that can be done within b2evo as easily as it can be done in worpress, thats by far the simplest way to deter them.

Cant help anymore right now, football is on Smile


-----------

a quick look at _feedback.php showed me this:

Code:

<!-- form to add a comment -->
      <form action="<?php echo $htsrv_url ?>/comment_post.php" method="post" class="bComment">


thats the page that takes the comment-- believe it or not renaming that file, and ALL instances in other files that call that will prevent comment spam. If you check your apache logs, you can see that they are hitting that page with impunity, simply because they know the name. rename it to somethign obscure and youre set. You obviously need to make sure to rename all of the other instances also 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
whoo
Big Sister
Big Sister

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: Sun Jan 16, 2005 13:25    Post subject: Reply with quote

comment_post.php is called twice as far as I can tell--, for anyone wondering how simple is is to rename that file, and all instances:

inside admin/_edit_showposts.php:

Code:

<form action="<?php echo $htsrv_url ?>/comment_post.php" method="post" class="bComment">


inside _feedback.php:

Code:
<!-- form to add a comment -->
      <form action="<?php echo $htsrv_url ?>/comment_post.php" method="post" id="commentform">


you would then need to rename the actual file..

_________________

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
EdB
/bb|[^b]{2}/

Joined: 05 Jan 2004
Posts: 7123
Reputation: 140.9 add or subtract from this member's reputationadd or subtract from this member's reputation
votes: 90

PostPosted: Sun Jan 16, 2005 14:43    Post subject: Reply with quote

The new file name shows up in your source code, so the 'person' who searched for a sequence of key words from the comment form area will get the new form name. They might not use it, but since it's there in a predictable and repeatable place it's an easy thing to programmically snag.

http://www.google.com/search?n...tnG=Search

showed up in my search results. I wonder if I should be celebrating my number one position?

I like the "type this word" method better. Altering the bot code to find something unpredictable is possible but extremely unlikely, so it should be okay. I'm also figuring on putting the check in the comment_form file with an errors_add so the human can go back and type Tom's name again. Just in case they thought Tom's name was Bob.

OTOH I don't get much in the way of comment spam, so why fix it? It's the new one-shot referer probes that are getting me annoyed.
Back to top
View user's profile Send private message
whoo
Forum Admin
Forum Admin

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: Sun Jan 16, 2005 14:49    Post subject: Reply with quote

edb, if you check my site, you will see that the renamed page I use is viewable in my source. It doesnt matter, theyre not looking at your source-- they (the spammers) already know what the name of the pages are by defualt-- that is what they are looking for.

I can show my logs, where hit after hit came in looking for the defualt comment submission page. http_posts are done remotely using scripts by spammers -- theyre not searching out source in pages, or even looking at your pages, for that matter.

reffy (search it) comes with over 3000 blog sites included for just that purpose.

as for fixing it, if you dont have a problem, why would you. My suggestion was for those that are having a problem, and are looking for a very very simple solution.

if you check my .htaccess, nearly every single url ive included within the mod rewrite code has attempted unsuccessfully to comment spam my site, and not one has succeeded. I use the mod rewrite just because I dislike the referer spam; comment spam has not been any sort of problem for me, since renaming the file.

its just one more thing that deters them, thats all. using them all works for me, and thats all I worry about in the end

_________________

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
EdB
/bb|[^b]{2}/

Joined: 05 Jan 2004
Posts: 7123
Reputation: 140.9 add or subtract from this member's reputationadd or subtract from this member's reputation
votes: 90

PostPosted: Mon Jan 17, 2005 3:15    Post subject: Reply with quote

whoo wrote:
... It doesnt matter, theyre not looking at your source ...

Yeah I know. In the case of the search I pasted above it doesn't matter because the target apparently wasn't comment spamming - it was a good search to find b2evo domains to hit with referer spam.

Suppose half the b2evo users changed the file name. Suddenly the spam bot success rate (and therefore the spam reward for spamming) is cut in half. Think they'll all just give up and get real jobs, or figure out what the deal is and what to do about it? Think they'll figure out to strip the source for the action on a form tag with a textarea in it? In other words that method fails as soon as lots of people employ it. It's much harder to figure out which field any particular user is requiring and what the content of that field needs to be, so if half the users went with a "toms first name" thing it'll last longer as a defense. Realistically half the users won't switch, and even if half did it would be a gradual change. Therefore those making money off the spam process probably wouldn't notice, so they wouldn't be motivated to modify their bots. Then again why implement a method that is easily thwarted by the vermin? Why not go with something with a higher likelyhood of survival over time?

Anyway that's why I went with "Type bobo" for people either not logged in or who don't have the name cookie from previously commenting. No sense in waiting for an issue when a reasonable solution is settin' there on the table eh?
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: Mon Jan 17, 2005 7:10    Post subject: Reply with quote

EdB wrote:


Suppose half the b2evo users changed the file name.


are they changing it to the same name? of course that wont work Smile thats why you name it something unique obviously Wink

i may test this this week, by removing my captcha, just to see which is doing the most good. Ill letcha know.

i actually had a similar issue with my nieces advanced guestbook install, I set her up with junkkeaters, or junkbusters, cant reme exactly what its called, to ward off the spam. I noticed after doing it, that the spam was getting past thier captcha, and looking at that logs, that the ips were different than the regular posters (that were using the captcha)(in the logs, users that do the captcha have thier ips changed to a junkbuster ip, since that becomes the ip of the submission, or something). I changed the page that does the http_post and voila, there hasnt been a single spam comment since.

_________________

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
gacjezv
New Poster
New Poster

Joined: 08 Jan 2004
Posts: 21
Reputation: 28.8Reputation: 28.8Reputation: 28.8 add or subtract from this member's reputationadd or subtract from this member's reputation

PostPosted: Mon Jan 24, 2005 23:35    Post subject: Reply with quote

Hi all

Great hack this is, as I have been getting regular spam lately in comments.

Can one of you fine gents post some simple instructions to add this function to a B2evo blog?

I am a php dummie and while can do simple stuff, I am not confident in this style of hack.

thanks a ton
gacjezv
Back to top
View user's profile Send private message Visit poster's website MSN Messenger
EdB
/bb|[^b]{2}/

Joined: 05 Jan 2004
Posts: 7123
Reputation: 140.9 add or subtract from this member's reputationadd or subtract from this member's reputation
votes: 90

PostPosted: Tue Jan 25, 2005 0:02    Post subject: Reply with quote

Whoo's "rename the file" method is covered really well. You find the two files she mentioned and change "comment_post.php" to "gabbagabbahey.php" or whatever floats your boat, then change comment_post.php to gabbagabbahey.php (or whatever previously supported your previously mentioned sailing vessel).

The "type a word" thins is a little more complex. If you want it let me know and I'll type it up when I'm thinking clearer.
Back to top
View user's profile Send private message
Display posts from previous:   
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.   printer-friendly view    b2evolution Forum Index -> Obsolete Forum Threads All times are GMT - 5 Hours
Goto page 1, 2, 3  Next
Page 1 of 3


 
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