By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
459,935 Members | 1,545 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 459,935 IT Pros & Developers. It's quick & easy.

Looking for Script

P: n/a
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
Share this Question
Share on Google+
5 Replies


P: n/a

"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

P: n/a
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

P: n/a
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

P: n/a
<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

P: n/a
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.