Author |
Message |
Les Caudl #1 / 11
|
 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 |
|
 |
Atrax #2 / 11
|
 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 |
|
 |
Thor Larhol #3 / 11
|
 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 |
|
 |
Jim Le #4 / 11
|
 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 |
|
 |
Les Caudl #5 / 11
|
 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 |
|
 |
Ekev #6 / 11
|
 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%6 f %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 |
|
 |
Les Caudl #7 / 11
|
 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 |
|
 |
Ekev #8 / 11
|
 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 |
|
 |
Atrax #9 / 11
|
 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 |
|
 |
Thor Larhol #10 / 11
|
 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 |
|
 |
Jim Le #11 / 11
|
 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 |
|
|