Re: [PHP] Spam Post Defense / ID spam form posts

This is a discussion on Re: [PHP] Spam Post Defense / ID spam form posts within the PHP General forums, part of the PHP Programming Forums category; Why don't you and others just reply to the list? (I'm smiling when I say this.) >Wow, ...


Go Back   Usenet Forums > PHP Programming Forums > PHP General

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 08-23-2007
Instruct ICC
 
Posts: n/a
Default Re: [PHP] Spam Post Defense / ID spam form posts

Why don't you and others just reply to the list? (I'm smiling when I say
this.)

>Wow, that's for that egg-sucking lesson. I would think it was clear from my
>answer that I know what a socket is.

Sorry. You understood the concept but it wasn't clear to me that you
understood about the socket. Save me a google search and define
"egg-sucking", although I get your point.

>That is pointless since most spam comments come from compromised machines,
>so you'd only succeed in pissing essentially innocent (albeit probably
>stupid) users.
>
>Moreover that would definitely be illegal and you're more likely to be sued
>than the person behind the spam.

I'll try to remember that. However, the technical interest remains and may
be handy for a known attacker server (meaning a known party that is not a
compromised innocent). It sounds like I'm looking for a "Reflected attack".

>Doesn't stop him/her being an idiot. Curious that you only value your job
>when payday is approaching.

Come on now. I meant that he pays me. I'm not trying to stop him on either
count.

>>They do seem to have the bbcode url style markup. Thanks again.

>
>You've got to bear in mind that they are trying to achieve something, and
>that something is usually to build traffic and/or inbound links to their
>sites. The only way they can do this is to include URLs in their posts.

Yes I was wondering, wtf is their objective?

__________________________________________________ _______________
Find a local pizza place, movie theater, and more….then map the best route!
http://maps.live.com/default.aspx?v=...=1&FORM=MGAC01
Reply With Quote
  #2 (permalink)  
Old 08-23-2007
Stut
 
Posts: n/a
Default Re: [PHP] Spam Post Defense / ID spam form posts

Instruct ICC wrote:
> Why don't you and others just reply to the list? (I'm smiling when I
> say this.)


Because that means messing with the recipient list - that's donkey work
your client should do, hence my use of reply-to-all.

>> Wow, that's for that egg-sucking lesson. I would think it was clear
>> from my answer that I know what a socket is.

> Sorry. You understood the concept but it wasn't clear to me that you
> understood about the socket. Save me a google search and define
> "egg-sucking", although I get your point.


To "teach someone how to suck eggs" means to explain something to them
when they already know it.
http://www.google.co.uk/search?q=tea...w+to+suck+eggs

>> That is pointless since most spam comments come from compromised
>> machines, so you'd only succeed in pissing essentially innocent
>> (albeit probably stupid) users.
>>
>> Moreover that would definitely be illegal and you're more likely to be
>> sued than the person behind the spam.

> I'll try to remember that. However, the technical interest remains and
> may be handy for a known attacker server (meaning a known party that is
> not a compromised innocent). It sounds like I'm looking for a
> "Reflected attack".


That would still be illegal. Posting unsolicited commercial messages on
a website is not technically illegal in most countries. Attacking a
server with the express intention of preventing it from working
correctly is in most countries. It's the technological equivalent of
getting prosecuted for assault because you defended your property from a
burglar.

>> Doesn't stop him/her being an idiot. Curious that you only value your
>> job when payday is approaching.

> Come on now. I meant that he pays me. I'm not trying to stop him on
> either count.


The point I was trying to make is that your first step should be to find
out why he has that position, educate him as to the benefits of the
CAPTCHA and the complications that any other approach might have.

>>> They do seem to have the bbcode url style markup. Thanks again.

>>
>> You've got to bear in mind that they are trying to achieve something,
>> and that something is usually to build traffic and/or inbound links to
>> their sites. The only way they can do this is to include URLs in their
>> posts.

> Yes I was wondering, wtf is their objective?


To get traffic to their websites that make them money. Think drugs,
stocks, dating, and anything else that might be lucrative.

The problem is that most of this activity is automated. It's the "if you
throw enough shit at the wall some of it will stick" approach, and
worryingly enough it works which is why they keep doing it.

-Stut

--
http://stut.net/
Reply With Quote
  #3 (permalink)  
Old 08-23-2007
Instruct ICC
 
Posts: n/a
Default Re: [PHP] Spam Post Defense / ID spam form posts

>Because that means messing with the recipient list - that's donkey work
>your client should do, hence my use of reply-to-all.

Wouldn't gmail thread it but still have 2 copies?
I could send email TO/CC/BCC the list to a specific folder, but I'd still
get the copy to me directly in another folder. What should I train my
donkey to do? I reply to all, then I only let the list address survive and
make sure it is in the TO field.

>Attacking a server with the express intention of preventing it from working
>correctly is in most countries. It's the technological equivalent of
>getting prosecuted for assault because you defended your property from a
>burglar.

Now I'm thinking I should inform the attacking server of the situation by
shutting them down until they address the issue. It may need new laws on
the books to cover my ass. But what do you think? Either a "YOU'VE BEEN
PWND BY THE GUARDIANS because you are either running hijacked services for
an attacker, (likely on an MS Windows flavor -- upgrade your OS to a non-MS
OS), or you are the actual attacker. When you patch your security holes,
THE GUARDIANS will consider your petition to re-enter the superhighway." or
some such. If the HTTP_USER_AGENT hasn't been spoofed, they all seem to be
Opera/9.0 (Windows NT 5.1; U; en), since I began tracking. If the server
could be shutdown and reported to an authority that would re-evaluate their
access to the net, it could help catch the attacker or in the least, stop
attacks on other "innocents".

Well, if the hijacked service is down, it will "hurt" the attacker. If the
"innocent's" server is down, they could learn about the need to be a better
net citizen while at the same time not providing services to the attacker.

>The point I was trying to make is that your first step should be to find
>out why he has that position, educate him as to the benefits of the CAPTCHA
>and the complications that any other approach might have.

He holds that position because he does not want the user to have to enter
any additional keystrokes or mouse clicks (or think more?) while they are
becoming a sales lead. Not unlike your repulsion to cut and paste to send
only to the list perhaps?

__________________________________________________ _______________
Tease your brain--play Clink! Win cool prizes!
http://club.live.com/clink.aspx?icid...tmailtextlink2
Reply With Quote
  #4 (permalink)  
Old 08-24-2007
Stut
 
Posts: n/a
Default Re: [PHP] Spam Post Defense / ID spam form posts

Instruct ICC wrote:
>> Because that means messing with the recipient list - that's donkey
>> work your client should do, hence my use of reply-to-all.

> Wouldn't gmail thread it but still have 2 copies?
> I could send email TO/CC/BCC the list to a specific folder, but I'd
> still get the copy to me directly in another folder. What should I
> train my donkey to do? I reply to all, then I only let the list address
> survive and make sure it is in the TO field.


If your mail client can't resolve two copies of the same email down to
one, change your mail client.

>> Attacking a server with the express intention of preventing it from
>> working correctly is in most countries. It's the technological
>> equivalent of getting prosecuted for assault because you defended your
>> property from a burglar.

> Now I'm thinking I should inform the attacking server of the situation
> by shutting them down until they address the issue. It may need new
> laws on the books to cover my ass. But what do you think? Either a
> "YOU'VE BEEN PWND BY THE GUARDIANS because you are either running
> hijacked services for an attacker, (likely on an MS Windows flavor --
> upgrade your OS to a non-MS OS), or you are the actual attacker. When
> you patch your security holes, THE GUARDIANS will consider your petition
> to re-enter the superhighway." or some such. If the HTTP_USER_AGENT
> hasn't been spoofed, they all seem to be Opera/9.0 (Windows NT 5.1; U;
> en), since I began tracking. If the server could be shutdown and
> reported to an authority that would re-evaluate their access to the net,
> it could help catch the attacker or in the least, stop attacks on other
> "innocents".
>
> Well, if the hijacked service is down, it will "hurt" the attacker. If
> the "innocent's" server is down, they could learn about the need to be a
> better net citizen while at the same time not providing services to the
> attacker.


I'm assuming (and hope) you're being somewhat sarcastic, but you seem to
misunderstand where these "attacks" are coming from. Most will not be
coming from other servers, but from desktop machines belonging to the
Joe Bloggs of this world. Bringing down their machines just because they
were ignorant enough to get compromised seems like cruel and unusual
punishment to me.

You're essentially talking about needing a license to use the Internet.
This has been talked about before on this list and all over the 'net,
but it will likely never happen because it goes against the principles
upon which it has been built and the people involved in running the core
infrastructure.

>> The point I was trying to make is that your first step should be to
>> find out why he has that position, educate him as to the benefits of
>> the CAPTCHA and the complications that any other approach might have.

> He holds that position because he does not want the user to have to
> enter any additional keystrokes or mouse clicks (or think more?) while
> they are becoming a sales lead. Not unlike your repulsion to cut and
> paste to send only to the list perhaps?


I don't have a repulsion toward modifying recipient lists, but I send
too many emails to be bothered to do it. My toolset works, it de-dupes
correctly and I've never had a problem with other people sending an
email to several addresses that end up at the same mailbox.

Now, to get back to your original question... I now understand that this
form you're dealing with is a contact form on a website? Your solution
is simple. Put a note above the form stating that they cannot send URLs,
HTML or BBcode. Then in your form handler check the following...

* Single line fields do not contain carriage returns (used by spammers
in an attempt to inject their own headers in emails)
* No fields contain URLs, HTML or BBcode.
* If you're asking for an email address check it against one of the many
regular expression patterns out there.

You may also want to consider naming your form fields non-descriptively.
For example, if you call the email field email an automated bot will
know to put an email address in there. If you name it field2 it won't
and your email address validation will catch it out.

With those steps you can easily cut out the majority of spam that will
come through a contact form.

-Stut

--
http://stut.net/
Reply With Quote
  #5 (permalink)  
Old 08-27-2007
Richard Lynch
 
Posts: n/a
Default Re: [PHP] Spam Post Defense / ID spam form posts

On Thu, August 23, 2007 4:46 pm, Stut wrote:
> Instruct ICC wrote:
>>> Wow, that's for that egg-sucking lesson. I would think it was clear
>>> from my answer that I know what a socket is.

>> Sorry. You understood the concept but it wasn't clear to me that
>> you
>> understood about the socket. Save me a google search and define
>> "egg-sucking", although I get your point.

>
> To "teach someone how to suck eggs" means to explain something to them
> when they already know it.
> http://www.google.co.uk/search?q=tea...w+to+suck+eggs


I always wondered where that phrase came from, and just how common is
egg-sucking anyway?

I mean, sure, I've eaten eggs.

I've even eaten hard-boiled eggs, which can sometimes require sort of
sucking them in.

But, really, who sucks on an egg in the first place?

I Googled and Wikipediad a bit and came up with a lot of un-sourced
junk that's probably about as correct as some of today's posts on this
list :-)

Anybody happen to have this book:
http://www.orionbooks.co.uk/PB-24584...se-Origins.htm
whose blurb makes it seem like it might have the answer?...

--
Some people have a "gift" link here.
Know what I want?
I want you to buy a CD from some indie artist.
http://cdbaby.com/browse/from/lynch
Yeah, I get a buck. So?
Reply With Quote
Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT +1. The time now is 12:18 PM.


Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.0.0