|
|
|||||||||
|
|||||||||
|
|||||||||
| |
|||
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Display Modes |
|
#1
|
|||
|
|||
|
Preventing Spambots from Harvesting Email Addresses
I know there is a way to include javascript on your site to prevent email spotbots from crawling the email address:
var username = "username"; var hostname = "hostname.com"; var linktext = username + "@" + hostname; document.write("<a href=" + "mail" + "to:" + username + "@" + hostname + ">" + linktext + "</a>") It assumes you hardcode your email addresses though. Where your email addresses are in a database and your page displaying the email is asp based, is there a way to use the javascript? |
|
#2
|
|||
|
|||
|
the easiest way is to use a contact form, and dont hardcode your email address, this is by far the most effective way.
|
|
#3
|
|||
|
|||
|
I know it is, but I don't want to use that method.
I would like to make it relatively easy for those legitimate users to obtain email address, while preventing spambots from getting them. |
|
#4
|
|||
|
|||
|
okay, I think I've figured this out.
I should be able to simply to call the recordset info from the database as follows:var username = "<%=rs("UserName")%>"; var hostname = "hostname.com"; var linktext = username + "@" + hostname; document.write("<a href=" + "mail" + "to:" + username + "@" + hostname + ">" + linktext + "</a>") I'll have to try it out ... |
![]() |
| Viewing: Dev Articles Community Forums > Programming > ASP Development > Preventing Spambots from Harvesting Email Addresses |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|