469,914 Members | 2,124 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 469,914 developers. It's quick & easy.

Looking for Script

Ed
I am looking for a script that hides your email address in your web page
from spiders, robots, etc....
Can someone tell me where to find one and do they work?
Thanks
Ed

Jul 20 '05 #1
5 1508

"Ed" <el*****@mindspring.com> schreef in bericht
news:bo*************@ID-201461.news.uni-berlin.de...
I am looking for a script that hides your email address in your web page
from spiders, robots, etc....
Can someone tell me where to find one and do they work?
Thanks
Ed


Hi Ed

This may be the script you are looking for

<script language="JavaScript"><!--
var name = "yourname"; var domain = "yourdomain";
document.write('<a href=\"mailto:' + name + '@' + domain +'\" +
style=\"cursor:default\"+>');
// --></script>
<img border="0" src="picture to click on">
<script language="JavaScript"><!--
document.write('</a>');
// --></script>
Greetings

John
http://members.home.nl/jpeskens
Jul 20 '05 #2
Ed hu kiteb:
I am looking for a script that hides your email address in your web
page from spiders, robots, etc....
Can someone tell me where to find one and do they work?


One relatively simple way is to encode the relevant part as html escape
characters instead of simple ascii. Unipad is one program that makes
this conversion painless. Those spambots cant seem to find encoded
characters.
--
--
Fabian
Visit my website often and for long periods!
http://www.lajzar.co.uk

Jul 20 '05 #3
Ed wrote:
I am looking for a script that hides your email address in your web page
from spiders, robots, etc....
Can someone tell me where to find one
Google is your friend. [psf 6.1]
and do they work?


No, since client-side JavaScripz is then required and users without it
cannot use the address. They are scriptkiddie bullshit and therefore to
be avoided. Server-side formmailer scripts are much more reliable (see
the discussion about `mailto:' URIs a few days before) and free you from
using e-mail addresses in your document(s).
PointedEars
Jul 20 '05 #4
<script language="Javascript">
<!--

var name = "info"
var domain = "anouksweb.nl"
document.write("<a href='mailto:" + name + "@" + domain + "'>")
document.write(name + "@" + domain)
document.write("</a>")
//-->
</script>

I think you can put this between your <body> then you have no spam ....

Greetz Mario

www.kluivie.nl
Jul 20 '05 #5
Mario wrote:
<script language="Javascript">
<script type="text/javascript">
[...]
document.write("</a>")
Assuming that you are using HTML because of the deprecated use of the
`language' attribute for the `script' element, you need to escape ETAGO
delimiters within script code that is to be placed within HTML:

document.write("<\/a>");

BTW, it is good style to end JavaScript statements with `;'.
[...]
I think you can put this between your <body> then you have no spam ....
What part of

| No, since client-side JavaScripz is then required
| and users without it cannot use the address.
(s/pz/pt/)

did you not understand? And why do you post a followup to *my* posting
but not referring to it in your text?
www.kluivie.nl


"Advertising the same service"? Put that into your signature.
PointedEars
Jul 20 '05 #6

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

3 posts views Thread by Voetleuce en f?nsievry | last post: by
1 post views Thread by Waqarahmed | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.