Email Imager - Convert your email addresses to images
Using images to show your email address instead of text will help to guard it from worms. These are dynamically created images using a normal HTML image tag.
e.g.: Email me at .
Make sure not to link to it using an anchor tag and mailto: as this will still give robots a textual address to find and spam.
How to use the php script on your dynamic siteDownload the script from the link above. You will need to add your own fonts.
Use image tags as you normally would in HTML and point the src attribute to the php file along with some variables that will determine its content, font, size, and color.
e.g.: <img src="email@example.com&f=arial&fs=12&c=0066cc&bc=ffffff" />produces: note: you can change the domain in the php file.
enc = encryption Pass encrypted variables to the script, see below e = email Full email address f = font Name of a font file in the same directory as email_image.php (arial is default) fs = font-size integer, in points c = color (text) Accepts HTML color codes (336699) or rgb value separated by commas (51,102,153) bc = background-color Accepts HTML color codes (336699) or rgb value separated by commas (51,102,153) l = draw lines across image Accepts color codes just as the above or set to 'true' to use background-colorusing lines:
You can take the protection of your email address one step further by encrypting the entire variable string and pass it as one value. Encryption is necessary if you want to pass the full email address to the script rather than just the alias.
Your page that calls the script must also be PHP in order to work and don't forget to include the functions (email_imager_func.php) and set your key ($key = makeRandomString(8);). Simply pass all your variables to the encrypt() function along with a randomly generated key.
e.g.: ?enc=<?=encrypt('firstname.lastname@example.org&f=arial&fs=12&c=0066cc&bc=ffffff',$key)?>&k=rdmz1sv0 your source code will show the encryption: ?enc=i%2BCsrJjm00qmQxtCNMtVnbEBClxR3QYz7P%2BoDn90G5mSpMOGfV4T4F6FOXe5yNXL0d9G4ZMU2dJMM5bXtHTm&k=rdmz1sv0produces: