Results 1 to 8 of 8
  1. #1
    Platinum Lounger
    Join Date
    Feb 2002
    Location
    A Magic Forest in Deepest, Darkest Kent
    Posts
    5,681
    Thanks
    0
    Thanked 1 Time in 1 Post

    Block spam emails with CSS

    I was scanning through a well known Moderators website the other day and it appears (quite rightly) that he has disguised his email link on his front page by putting the word DUMMY in it and then asks people to remove the word DUMMY when the email pops up. A cunning idea, but a bit unuser friendly.

    CSS2 supports a very under used method of inserting text after a set of text in HTML. This currently does not work in IE but word on the blogs states that the final version of IE7 will ( not working in IE 7 Beta 1 though)


    The method:


    HTML

    <p id="email">Jezza Bear</p>


    CSS
    this can either be put between the <style></style> tgas in the HTML or seperately in an external css file

    #email:after{

    content: " <jbear40theforest.co.uk>";
    color: #000000;

    }

    When the file is viewed in a browser it will read as Jezza Bear <jbear@theforest.co.uk>. Spybots will only read it as jbear40theforest.co.uk and therefore not be able to send spam to your address.


    This definitely works in Firefox and I thought it was a cunning little trick to share with you <img src=/S/grin.gif border=0 alt=grin width=15 height=15>
    Jerry

  2. #2
    Plutonium Lounger
    Join Date
    Oct 2001
    Location
    Lexington, Kentucky, USA
    Posts
    12,107
    Thanks
    0
    Thanked 1 Time in 1 Post

    Re: Block spam emails with CSS

    Uh oh, I wonder who that Mod might be... <img src=/S/evilgrin.gif border=0 alt=evilgrin width=15 height=15> I guess you're right about the unfriendly part, for not only do I stop spam, but I've never gotten an email at that "throw away" address...

  3. #3
    Platinum Lounger
    Join Date
    Feb 2002
    Location
    A Magic Forest in Deepest, Darkest Kent
    Posts
    5,681
    Thanks
    0
    Thanked 1 Time in 1 Post

    Re: Block spam emails with CSS

    I was not trying to name names but I still can't quite remember who the maderator it was <img src=/S/evilgrin.gif border=0 alt=evilgrin width=15 height=15>

    The method that Maderator used is fine and it obviously works......just trying to put a bit of science behind it <img src=/S/grin.gif border=0 alt=grin width=15 height=15>
    Jerry

  4. #4
    Uranium Lounger
    Join Date
    Jan 2001
    Location
    Cincinnati, Ohio, USA
    Posts
    7,089
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Re: Block spam emails with CSS

    I've been using character entities for quite a while now with a good deal of success. I found this much easier than dealing with Javascript-generated email addresses, but your example may be one of the simplest yet.

    I figure I'm gonna get crap in my inbox either way, but I'll do what I can to prevent it!!
    -Mark

  5. #5
    Plutonium Lounger
    Join Date
    Oct 2001
    Location
    Lexington, Kentucky, USA
    Posts
    12,107
    Thanks
    0
    Thanked 1 Time in 1 Post

    Re: Block spam emails with CSS

    I'm laughing, Jerry and I hope (from the smilies in your post) that you are too! I put that email thingie on my web page a long time ago and at the time, it was mainly because my email address is listed at the registrar who did my domain and I'm not willing to "pay" them to get an anonymous Whois listing.

    You know what's so <img src=/w3timages/censored.gif alt=censored border=0> funny it's silly? A short time ago when I got home I found TWO emails on my domain to that address for the dreaded ** Spam post - please alert a Moderator **! And here I was telling you that... well, never mind. The throw-away email address is about to be thrown away!

    And hey, thanks for the suggestion, by the way!

  6. #6
    Platinum Lounger
    Join Date
    Feb 2002
    Location
    A Magic Forest in Deepest, Darkest Kent
    Posts
    5,681
    Thanks
    0
    Thanked 1 Time in 1 Post

    Re: Block spam emails with CSS

    Mark

    That is a great link and resource. I have added that to my bookmarks list <img src=/S/cool.gif border=0 alt=cool width=15 height=15>
    Jerry

  7. #7
    5 Star Lounger
    Join Date
    Apr 2003
    Location
    Hampshire, United Kingdom
    Posts
    602
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Re: Block spam emails with CSS

    I've seen stuff like that before, and I'm afraid I'm not convinced. My theory is that if the spammers can write bots that search for things in the format name@domain.whatever, it would be very simple to alter the bots to search for the same thing in the "encoded" format.
    Waggers
    If at first you do succeed, you&#39;ve probably missed something.

  8. #8
    Uranium Lounger
    Join Date
    Jan 2001
    Location
    Cincinnati, Ohio, USA
    Posts
    7,089
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Re: Block spam emails with CSS

    Certainly what you've said is true, but the question is "do the spammers do this YET." This is but one method used to disguise email addresses in page code, and if it was widely used I would think the bots would read it. As it stands, I don't think they have evolved to that point yet. There are other brute-force methods that can and are used, so I suspect any email encoding is really just for peace of mind.
    -Mark

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •