Skip Navigation

Login





Join! | Login troubles?

Online members

Guests:2
Members:0

Poll

What's your favorite scripting language for solving challenges?


python (14.4%)

perl (7.1%)

bash (4.0%)

ruby (2.0%)

php (33.6%)

javascript (14.5%)

I'm not convinced scripting saves time, I use a "proper" language for everything I do. (17.3%)

Scripting? Excel for the winners, man! (7.0%)


Total votes: 868
Date added: 2008-06-14

Anti-spambot e-mail encoder

This hasn't got anything to do with solving challenges, just thought it could be useful for some people.

» Description

Spambots search / crawl the web for e-mail addresses to send you crap. For webmasters there are different ways to show an e-mail address on a web page, while hiding the address for spambots. For example, you can display a picture with the address on it, instead of the html link.

The script below uses two different ways to hide an e-mail address from spambots. First of all, it encodes the text to HTML entities. The browser displays these entities without a problem, but many spambots are fooled by this. The 'Less simple' and 'Heavy' way also use Javascript to hide the '<a href="mailto:">' tag and split up the e-mail address, so a spambot won't even detect it is a link.

Summary of methods:

Simple
HTML Entities
Less simple
HTML Entities, Javascript
Heavy
HTML Entities, Javascript, Split up

» Input

Level of encoding:









View a part of the source so you can run the script yourself, if you don't trust entering your e-mail address on this page for some reason. Feel free to use the code on your own website.

This tool is still a bit under construction. I've never tested the effect on spambots, but I'm not aware of any spambot that can handle these 'encodings', so it should work :)