| Important Announcement: *Lost Your Search Engine Traffic?* |
![]() ![]() |
Nov 27 2006, 02:59 PM
Post
#1
|
|
|
HR 4 ![]() ![]() ![]() ![]() Group: Active Members Posts: 115 Joined: 30-August 05 User's local time: Sep 9 2010, 03:26 AM Member No.: 8,522 |
Is there any way to keep the spamers or web bots from collecting my email address on contact page. I have seen at least one site where the mailto:emailaddress was done using ASCII Characters .
(IMG:http://www.highrankings.com/forum/style_emoticons/default/eek.gif) Vance |
|
|
|
Nov 27 2006, 03:10 PM
Post
#2
|
|
![]() Jonathan Hochman Group: Moderator Posts: 1,554 Joined: 27-November 05 User's local time: Sep 9 2010, 03:26 AM From: Connecticut - Land of Steady Habits Member No.: 9,569 |
You can find many ways to do javascript email obfuscation. You can also create a response form that employs a Captcha or rudimentary Turing Test to keep out spambots.
|
|
|
|
Nov 27 2006, 03:16 PM
Post
#3
|
|
![]() HR 9 Group: Moderator Posts: 4,636 Joined: 13-August 03 User's local time: Sep 9 2010, 08:26 AM From: Blackpool UK Member No.: 492 |
using ASCII or UNICODE chars is not foolproof
using javascript to write ASCII/UNICODE characters into the page is pretty safe though a couple of simple javascript functions to hide mailtos CODE function HideEmail(user) // write email address on page to hide from 'spiders' // recipient name passed as user. // change domain name in this script before using on your site { domain = "domain.tld"; document.write('<a href=\"mailto:'); document.write(user); document.write('@'); document.write(domain); document.write('\">'); document.write(user); document.write('@'); document.write(domain); document.write('</a>'); } function EmailName(user,PromptText) // write email address on page to hide from 'spiders' // recipient name passed as user. Friendly name passed as PromptText // change domain name in this script before using on your site { domain = "domain.tld"; document.write('<a href=\"mailto:'); document.write(user); document.write('@'); document.write(domain); document.write('\">'); document.write(PromptText); document.write('</a>'); } the only safe way is to NEVER have the mail address in the page and use a form and server side code to send the email. |
|
|
|
![]() ![]() |
|
Lo-Fi Version | Time is now: 9th September 2010 - 02:26 AM |