Forums
This topic is locked
hiding email address in dynamic mailto
Posted 06 Mar 2008 18:04:14
1
has voted
06 Mar 2008 18:04:14 Dave Clarke posted:
hii have seen loads of extensions and methods to hide email addresses in mailto links but i can't seem to find one that will work with a dynamic mailto.
i know i could use a form for users to send emails and send it with jmail and therefore eliminate the need for the email address on the page at all but it seems a lot of work to simply stop harvesters, surely there is a method to hide the address in a dynamic mailto??
thanks
UD4|DW8.02|DWCS3|ASP|VBScript|IIS5.1|Access|WinXPPro & WinXPHome.
www.reunite.co.uk
www.dogworld-uk.com
Replies
Replied 08 Mar 2008 17:07:20
08 Mar 2008 17:07:20 Javier Castro replied:
What are the methods have seen, can you share?
I saw something interesting where the all the emails are built dinamically. The approach was to create variables
Dim eName, atSign, compName, dotSign, endCom
eName="dave"
atSign="@"
comName="yourcompany"
dotSign = "."
endCom="com"
the on submit the info is passed to another page where there is a form and all the variables are put together then the email is sent.
I hope is enough to start your creative juices flowing and you can figure it out. I personally have not used it, and I don't remember where I saw it, but it made sense to me at that time.
Cheers,
Javier
Javier
"I'm a slow learner and I forget fast" grandpa
DW | FW | ASP | HTML | CSS
I saw something interesting where the all the emails are built dinamically. The approach was to create variables
Dim eName, atSign, compName, dotSign, endCom
eName="dave"
atSign="@"
comName="yourcompany"
dotSign = "."
endCom="com"
the on submit the info is passed to another page where there is a form and all the variables are put together then the email is sent.
I hope is enough to start your creative juices flowing and you can figure it out. I personally have not used it, and I don't remember where I saw it, but it made sense to me at that time.
Cheers,
Javier
Javier
"I'm a slow learner and I forget fast" grandpa
DW | FW | ASP | HTML | CSS
Replied 12 Mar 2008 10:31:23
12 Mar 2008 10:31:23 Dave Clarke replied:
this is what i'm going to try, don't know how successful it will be but time will tell
first create this function
<b><%
function createMailto(strEmail)
dim intCounter 'as integer
dim strNewAddress 'as string
dim arrEmail 'as string
dim strTag 'as string
for intCounter = 1 to len(strEmail)
strNewAddress = strNewAddress & "&#" & asc(mid(strEmail,intCounter,1)) & ";"
next 'iCounter
arrEmail = split(strNewAddress,"@"
strTag = "<script language=""Javascript"" type=""text/javascript"">" & vbCrLf
strTag = strTag & "<!--" & vbcrlf
strTag = strTag & "document.write('<a href=""mai');" & vbcrlf
strTag = strTag & "document.write('lto');" & vbcrlf
strTag = strTag & "document.write(':" & arrEmail(0) & "');" & vbcrlf
strTag = strTag & "document.write('@');" & vbcrlf
strTag = strTag & "document.write('" & arrEmail(1) & """>');" & vbcrlf
strTag = strTag & "document.write('" & arrEmail(0) & "');" & vbcrlf
strTag = strTag & "document.write('@');" & vbcrlf
strTag = strTag & "document.write('" & arrEmail(1) & "<\/a>');" & vbcrlf
strTag = strTag & "// -->" & vbcrlf
strTag = strTag & "</script><noscript>" & arrEmail(0) & " at " & vbcrlf
strTag = strTag & Replace(arrEmail(1),"."," dot " & "</noscript>"
createMailto = strTag
end function
%></b>
then where your mailto link is use this
<b><%=createMailto((recordset.Fields.Item("fldEmail".Value))%></b>
as you can probably see this splits the mailto up into small pieces so that hopefully the harvesters cannot read it
UD4|DW8.02|DWCS3|ASP|VBScript|IIS5.1|Access|WinXPPro & WinXPHome.
www.reunite.co.uk
www.dogworld-uk.com
first create this function
<b><%
function createMailto(strEmail)
dim intCounter 'as integer
dim strNewAddress 'as string
dim arrEmail 'as string
dim strTag 'as string
for intCounter = 1 to len(strEmail)
strNewAddress = strNewAddress & "&#" & asc(mid(strEmail,intCounter,1)) & ";"
next 'iCounter
arrEmail = split(strNewAddress,"@"
strTag = "<script language=""Javascript"" type=""text/javascript"">" & vbCrLf
strTag = strTag & "<!--" & vbcrlf
strTag = strTag & "document.write('<a href=""mai');" & vbcrlf
strTag = strTag & "document.write('lto');" & vbcrlf
strTag = strTag & "document.write(':" & arrEmail(0) & "');" & vbcrlf
strTag = strTag & "document.write('@');" & vbcrlf
strTag = strTag & "document.write('" & arrEmail(1) & """>');" & vbcrlf
strTag = strTag & "document.write('" & arrEmail(0) & "');" & vbcrlf
strTag = strTag & "document.write('@');" & vbcrlf
strTag = strTag & "document.write('" & arrEmail(1) & "<\/a>');" & vbcrlf
strTag = strTag & "// -->" & vbcrlf
strTag = strTag & "</script><noscript>" & arrEmail(0) & " at " & vbcrlf
strTag = strTag & Replace(arrEmail(1),"."," dot " & "</noscript>"
createMailto = strTag
end function
%></b>
then where your mailto link is use this
<b><%=createMailto((recordset.Fields.Item("fldEmail".Value))%></b>
as you can probably see this splits the mailto up into small pieces so that hopefully the harvesters cannot read it
UD4|DW8.02|DWCS3|ASP|VBScript|IIS5.1|Access|WinXPPro & WinXPHome.
www.reunite.co.uk
www.dogworld-uk.com
Replied 13 Mar 2008 03:19:47
13 Mar 2008 03:19:47 Javier Castro replied:
Did you run few tests on your function???
Javier
"I'm a slow learner and I forget fast" grandpa
DW | FW | ASP | HTML | CSS
Javier
"I'm a slow learner and I forget fast" grandpa
DW | FW | ASP | HTML | CSS
Replied 13 Mar 2008 09:30:09
13 Mar 2008 09:30:09 Dave Clarke replied:
I have it set up on a couple of pages and it seems to work fine.. i.e it works as a mailto
only time will tell if it works in hiding email addresses from harvesters
UD4|DW8.02|DWCS3|ASP|VBScript|IIS5.1|Access|WinXPPro & WinXPHome.
www.reunite.co.uk
www.dogworld-uk.com
only time will tell if it works in hiding email addresses from harvesters
UD4|DW8.02|DWCS3|ASP|VBScript|IIS5.1|Access|WinXPPro & WinXPHome.
www.reunite.co.uk
www.dogworld-uk.com
Replied 14 Mar 2008 18:28:40
14 Mar 2008 18:28:40 Javier Castro replied:
I'll also give it a try. Thanks for sharing the info.
Javier
Javier
"I'm a slow learner and I forget fast" grandpa
DW | FW | ASP | HTML | CSS
Javier
Javier
"I'm a slow learner and I forget fast" grandpa
DW | FW | ASP | HTML | CSS