Home
Monday, October 23, 2017
5:22:11 PM
Users online: 0   You are here >> Home > Web Design

Forums | Web Design Forums search
Forum FAQ
   
  1  
JavaScript Email Image Link
rcarmichael 
8/5/08 9:55:24 PM
Journeyman
Hi all;
I wish to encode my Email address on my website for general user use, but block botts from using it (no need to explain why).
I have found this JavaScript method.

<script language=javascript>
<!--
var username = "username";
var hostname = "yourdomain.com";
var linktext = username + "@" + hostname;
document.write("<a href=" + "mail" + "to:" + username +
"@" + hostname + ">" + linktext + "</a>")
//-->
</script>

However, I am worried that, as on a web browser the email looks "normal", a web bott could see it in that form. Firstly, do you suggest this method, or is there another method you think more suitable.
Secondly, if the Spy bott can read general browser shown text, how can I use this JavaScript in conjunction with an Image, so that I have an Image of my Email, and ths links via the Javascript to a mailto command.
Thank you all in advance,
Ryan

-----

johnsee 
8/5/08 10:43:27 PM
Mod
SuperHero

Immortal


A boat will see it if it can read javascript.

Most can't.

Disable Javascript in your browser and you'll notice the link won't work.

-----
Quote by Mac Dude
I love the smell of napalm in the Green Room.
------

.:Cyb3rGlitch:. 
8/5/08 10:57:34 PM
Titan

Use a PHP based contact form. Superfireydave showed me a great PHP based contact form which I now use:

http://www.cyb3rglitch.com/contact.php

I can explain how to implement it via MSN.

-----
Cyb3rGlitch Tutorials: http://www.cyb3rglitch.com/
Tutorials for the aspiring beginner.

nicephotog-jvm.net 
10/5/08 1:53:46 PM
Master

robots.txt "syntax", though the subtle clue here is there is a type of bot
called a "rogue bot".

-----
ERROR @ [ ForumReply.DLL ]
Line 983395876948
[ CyborgLoop.DLL ] not loaded
ERROR #232 (0x85100084) Fatal Exception
program C:\progra~1\nicephotoganswers\bin\nicm.exe

johnsee 
13/5/08 9:32:29 PM
Mod
SuperHero

Immortal


I doubt there is a single email collecting robot ever built that actually obeys a robots.txt file...

-----
Quote by Mac Dude
I love the smell of napalm in the Green Room.
------

superfireydave 
13/5/08 9:44:03 PM
Titan

I've never come across having an email represented on a site be a major problem but okay.

If you really feel like you need to: do an image. Of course, that isn't great for usability or accessibility at all.

-----
Mreow?

nicephotog-jvm.net 
13/5/08 11:23:42 PM
Master

I think he's worried about the email being used as meta data and collected.
There is a simplified way of using an email address alike a get request,
but it eludes me for know.
I'm sure its a legitimate worry.

-----
ERROR @ [ ForumReply.DLL ]
Line 983395876948
[ CyborgLoop.DLL ] not loaded
ERROR #232 (0x85100084) Fatal Exception
program C:\progra~1\nicephotoganswers\bin\nicm.exe

johnsee 
14/5/08 5:40:49 PM
Mod
SuperHero

Immortal


Quote by superfireydave
I've never come across having an email represented on a site be a major problem but okay.

If you really feel like you need to: do an image. Of course, that isn't great for usability or accessibility at all.



Your kidding right?

Create a new email address. Put that email address on the net in plaintext (atomic will do) and you'll start getting spam within a week. It's happened to me on a number of occasions, and I've tested it many times myself.

-----
Quote by Mac Dude
I love the smell of napalm in the Green Room.
------

superfireydave 
14/5/08 5:57:07 PM
Titan

Quote by johnsee
Quote by superfireydave
I've never come across having an email represented on a site be a major problem but okay.

If you really feel like you need to: do an image. Of course, that isn't great for usability or accessibility at all.



Your kidding right?

Create a new email address. Put that email address on the net in plaintext (atomic will do) and you'll start getting spam within a week. It's happened to me on a number of occasions, and I've tested it many times myself.


Oh, I never said you wouldn't get spam, but even on my free gmail account the spam is easily identified and I haven't had a problem =\

-----
Mreow?

  1  
Forums | Web Design