Your web site might be contributing in how much junk mail you receive, especially if you include an email address on your pages.
For the impatient or those who don't care how this works, jump ahead to the final script.
The text address this script produces will appear to be plain text. From a design point of view, this will completely blend in with whatever other text you have on the page. Readers will never know it was generated by a script. Readers are free to change the font or size to their preference, and the address could be read aloud by a machine for the visually impaired.
The code to write an email address into a web page looks like this:
The parentheses contain the two halves of my email address. These strings
are assembled by the
Linking the address
First, we'll define a reusable variable
variables are case sensitive, and
Next, we'll use
Be careful with those single and double quote marks.
or those who've disabled it will not see anything. Parts of Dale's image
solution (mentioned above) can be made to work here using a
To show an image:
or a message:
One more thing for the paranoid
If you are still worried that the Spam-Crawlers might strip out the
Variables can have information added to their existing contents, and that new content can even include the existing variable.
If you wanted to reverse this, since you are REALLY paranoid, you can:
Note that the second line was reversed to accommodate the change. The automated source code uses the super-paranoid option and reverses the email parts in the code.
Links to other Anti-Spam sitesHere are links to sites dealing with preventing and fighting spam:
It's not that much more typing than a normal link, and I'd gladly trade a few extra keystrokes now to avoid a ton of junk email later. I used to keep the text of this link in a little file on my desktop so I can quickly and easily access it whenever I need to. Since writing the script to build the code, I'm actually using my own page for the code.
If this was helpful or interesting to you, please link to this site so other people can share this information too. Send me a note and let me know what you thought of this page.
January 2001 (revised May 2001)