News Feed
Jobs Feed
Sections




News Archive
Looking for more information on how to do PHP the right way? Check out PHP: The Right Way

CodeForest.net:
Obfuscate your e-mail address with PHP, JavaScript and CSS
October 26, 2011 @ 12:39:01

A new post on CodeForest.net today gives you a technique for obfuscating email addresses with a combination of PHP, CSS and Javascript. It uses ROT13 for the obfuscation and some tricky CSS to keep it usable for the human visitors.

According to Wikipedia, more than 97% of all e-mails sent over the net are unwanted. That's around 200 billion spam messages per day. To keep this insane amount of spam out of your inbox, you should keep your e-mail safe when you display it on web. One of the ways to keep it safe is to obfuscate it. In this tutorial I'll show you how to create a script that will do just that.

The script converts the email address into a ROT13 obfuscated versions and reverse it. The spam bots harvesting addresses won't see it as a valid format but the user, thanks to some CSS rules, will see it and be able to copy it easily. Each part of the script is explained in the post and you can see a demo of it in action here.

0 comments voice your opinion now!
rot13 email address obfuscate javascript css


blog comments powered by Disqus

Similar Posts

Matt Curry's Blog: Check Out These Upgrades I Made To The CakePHP DebugKit

Lorenzo Alberton's Blog: PEAR::Pager - Navigation with Pager and AJAX (or simple Javascript)

Joshua Eichorn's Blog: Adding AJAX to a Website step by step, Part II

Geeks Not Nerds Blog: Rolling your own Blog Backend from Scratch Part 1

Noupe.com: How To Create Your Own Stats Program (JavaScript, AJAX, PHP)


Community Events











Don't see your event here?
Let us know!


application hhvm framework component overview composer facebook install unittest series release symfony2 language hack podcast opinion package introduction security code

All content copyright, 2014 PHPDeveloper.org :: info@phpdeveloper.org - Powered by the Solar PHP Framework