hide email from robots with jscript? 
Author Message
 hide email from robots with jscript?

Is there a way to hide an email address on a web page from the robots
(so it doesn't get added to the spammer's list) using jscript?  The
user woudl still need to be able to click on it and popup his email as

--



Tue, 24 Aug 2004 12:43:48 GMT  
 hide email from robots with jscript?
well, you could split it up into a variable, then document.write() it.
since robots don't parse javascript, they won't get it.


document.write('<a href="mailto:'+eml+'">email</a>');

Atrax - MVP [Microsoft Most Valued Professional]

http://www.infinitemonkeys.ws/

Host with me for $100 a year!
http://www.atrax.ws/hosting/

*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!



Tue, 24 Aug 2004 13:27:36 GMT  
 hide email from robots with jscript?

Quote:
> Is there a way to hide an email address on a web page from the robots
> (so it doesn't get added to the spammer's list) using jscript?  The
> user woudl still need to be able to click on it and popup his email as


Robots that are harvesting email adresses are (I suspect) not very smart - they
don't interpret JS before searching for email patterns. As such, it should be
sufficient to simply document.write an unescaped version of some escaped HTML. I
do this on http://jscript.dk :

<script src="email.js"></script>
<noscript>contact (at) jscript (dot) dk</noscript>

where email.js contains:

document.write(unescape('%54%68%6f%72%20%4c%61%72%68%6f%6c%6d%20%2d%20%63%6f%6e%
74%61%63%74%3a%20%3c%61%20%68%72%65%66%3d%22%6d%61%69%6c%74%6f%3a%63%6f%6e%74%61
%63%74%40%6a%73%63%72%69%70%74%2e%64%6b%22%3e%63%6f%6e%74%61%63%74%40%6a%73%63%7
2%69%70%74%2e%64%6b%3c%2f%61%3e'))

--
Thor Larholm
<URL: http://www.jibbering.com/faq/> FAQ for comp.lang.javascript



Tue, 24 Aug 2004 18:44:31 GMT  
 hide email from robots with jscript?


Quote:
> well, you could split it up into a variable, then document.write() it.
> since robots don't parse javascript, they won't get it.

since _some_ robots don't parse javascript they won't get it...

Jim.



Tue, 24 Aug 2004 19:29:52 GMT  
 hide email from robots with jscript?
Exactly what I was looking for!

Is there a routine that will take normal text and write it out as
escape chars so that I can add it to my email.js?

Thanks, Les Caudle



Quote:


>> Is there a way to hide an email address on a web page from the robots
>> (so it doesn't get added to the spammer's list) using jscript?  The
>> user woudl still need to be able to click on it and popup his email as

>Robots that are harvesting email adresses are (I suspect) not very smart - they
>don't interpret JS before searching for email patterns. As such, it should be
>sufficient to simply document.write an unescaped version of some escaped HTML. I
>do this on http://jscript.dk :

><script src="email.js"></script>
><noscript>contact (at) jscript (dot) dk</noscript>

>where email.js contains:

>document.write(unescape('%54%68%6f%72%20%4c%61%72%68%6f%6c%6d%20%2d%20%63%6f%6e%
>74%61%63%74%3a%20%3c%61%20%68%72%65%66%3d%22%6d%61%69%6c%74%6f%3a%63%6f%6e%74%61
>%63%74%40%6a%73%63%72%69%70%74%2e%64%6b%22%3e%63%6f%6e%74%61%63%74%40%6a%73%63%7
>2%69%70%74%2e%64%6b%3c%2f%61%3e'))



Tue, 24 Aug 2004 23:48:13 GMT  
 hide email from robots with jscript?

|
document.write(unescape('%54%68%6f%72%20%4c%61%72%68%6f%6c%6d%20%2d%20%63%6f
%6e%
| 74%61%63%74%3a%20%3c%61%20%68%72%65%66%3d%22%6d%61%69%6c%74%6f%3a%63%6f
| %6e%74%61
| %63%74%40%6a%73%63%72%69%70%74%2e%64%6b%22%3e%63%6f%6e%74%61%63%74%40%6a
| %73%63%7
| 2%69%70%74%2e%64%6b%3c%2f%61%3e'))

Geeez!!!
My solution is a lot simpler... Though I'm not sure how well it works. Well,
there's no way to be sure it does.

Check the source code of http://www.felin.com.br/contact/

:: "Ekevu Guepardo" ::
:: Acinonyx jubatus ::
:: Porto Alegre, BR ::



Wed, 25 Aug 2004 11:42:40 GMT  
 hide email from robots with jscript?
Is there a command that will turn a normal string into escape chars
like the ones you show below? Thanks, Les Caudle

On Sat, 9 Mar 2002 00:42:40 -0300, "Ekevu"

Quote:


>|
>document.write(unescape('%54%68%6f%72%20%4c%61%72%68%6f%6c%6d%20%2d%20%63%6f
>%6e%
>| 74%61%63%74%3a%20%3c%61%20%68%72%65%66%3d%22%6d%61%69%6c%74%6f%3a%63%6f
>| %6e%74%61
>| %63%74%40%6a%73%63%72%69%70%74%2e%64%6b%22%3e%63%6f%6e%74%61%63%74%40%6a
>| %73%63%7
>| 2%69%70%74%2e%64%6b%3c%2f%61%3e'))

>Geeez!!!
>My solution is a lot simpler... Though I'm not sure how well it works. Well,
>there's no way to be sure it does.

>Check the source code of http://www.felin.com.br/contact/

>:: "Ekevu Guepardo" ::
>:: Acinonyx jubatus ::
>:: Porto Alegre, BR ::



Wed, 25 Aug 2004 12:31:19 GMT  
 hide email from robots with jscript?

| Is there a command that will turn a normal string into escape chars
| like the ones you show below? Thanks, Les Caudle

  escape(unescape(whatever)) == whatever;
unescape(  escape(whatever)) == whatever;

But this format uses "%20" instead of "+" to represent spaces. That's why I
always use this couple of functions:

urlEncode = function(str) { return escape(str).replace(/%20/g, '+') };
urlDecode = function(str) { return unescape(str.replace(/\+/g, ' ')) };

For the purposes of this thread, I suggest createing a nonstandard pair of
encode/decode functions. That will make the protection even more effective.

:: "Ekevu Guepardo" ::
:: Acinonyx jubatus ::
:: Porto Alegre, BR ::



Wed, 25 Aug 2004 13:15:58 GMT  
 hide email from robots with jscript?
what, you've found a robot which _does_??

Atrax - MVP [Microsoft Most Valued Professional]

http://www.infinitemonkeys.ws/

Host with me for $100 a year!
http://www.atrax.ws/hosting/

*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!



Wed, 25 Aug 2004 14:07:33 GMT  
 hide email from robots with jscript?

Quote:
> For the purposes of this thread, I suggest createing a nonstandard pair of
> encode/decode functions. That will make the protection even more effective.

A ready-to-use example for Les Caudle (who may not wish to make one himself):

http://jscript.dk/2002/3/obfuscate.html

The default output can be viewed on

http://jscript.dk/2002/3/obfuscateExample.html

--
Thor Larholm
<URL: http://www.jibbering.com/faq/> FAQ for comp.lang.javascript



Thu, 26 Aug 2004 01:06:32 GMT  
 hide email from robots with jscript?


Quote:
> what, you've found a robot which _does_??

It might be a good idea to quote some of what you're replying to...

Yes, I have robots which parse javascript... I've even scraped email
addresses off of pages with them...

Jim.



Fri, 27 Aug 2004 20:00:38 GMT  
 
 [ 11 post ] 

 Relevant Pages 

1. Hide email addresses on Internet

2. Robots.txt

3. Upload robot, please help (kinda long...)

4. more Robot and Spider Friendly

5. Hiding toolbar/statusbar, etc from vbscript or jscript

6. How to hide Menubar, toolbar, scrollbars using Jscript

7. Can I hide image using Jscript/html or .....?

8. JScript to make an OPTION hidden

9. How to hide text with jscript

10. hiding and making visible an object on a webpage using jscript

11. Send an HTML page by email usin JScript

12. Sending Email via Outlook 2000 Using Jscript...

 

 
Powered by phpBB® Forum Software