473,487 Members | 2,698 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

email address on homepage

what is the simplest way to put the email address on the homepage so that it
is not readable by email extractor or search engine? I remember someone
wrote a simple script to do that, but I can't find it now. Anyone know
about this? Thanks.
pcchong
Jul 23 '05 #1
8 2726
pcchong wrote:
what is the simplest way to put the email address on the homepage so that it
is not readable by email extractor or search engine? I remember someone
wrote a simple script to do that, but I can't find it now. Anyone know
about this? Thanks.


<img src="emailAddress.jpg" ......>

where emailAddress.jpg is, you guessed it, an image of your email
address. The problem is two-fold though. Non-image browsers won't get
the image unless you place it in the alt attribute which would defeat
the purpose. Relying on JS to do it also has the same, non-JS, limitations.

The solution to people being able to email you without bots getting your
address? Simple. A form that submits the email data and then emails it
to you.

--
Randy
comp.lang.javascript FAQ - http://jibbering.com/faq & newsgroup weekly
Jul 23 '05 #2
pcchong wrote:
what is the simplest way to put the email address on
the homepage so that it is not readable by email
extractor or search engine?
'email address on ... page' and 'not readable by ...' cannot be done. If
the email address harvesting software is smart enough (and that don't
have to be that smart (particularly if you make it into a mailto: link))
it will get the address whatever you do.

Fortunately email harvesters are the preserve of spammers and spammers
are incredibly dim. Most current email harvesters can be thrown off by
substituting some characters (including the '@') with suitable HTML
entities. However, as people munge their email addresses spammers will
probably just move to more sophisticated email harvesting software (you
don't have to be smart to use other people's software).

So the best that can be achieved is partial protection at present, with
diminishing effectiveness over time.
I remember someone wrote a simple script
to do that, but I can't find it now.

<snip>

Do not use a (client-side) script for this. They can do no more than
would be achieved by substituting characters for entities in the HTML
and they introduce a needless dependency on client-side scripting.

Richard.
Jul 23 '05 #3
JRS: In article <u5********************@comcast.com>, dated Thu, 7 Apr
2005 09:37:38, seen in news:comp.lang.javascript, Randy Webb
<Hi************@aol.com> posted :

The solution to people being able to email you without bots getting your
address? Simple. A form that submits the email data and then emails it
to you.


But be aware of consequences.

If I E-mail using someone's mailto:, or using an address obtained by any
other means, then my message is entered in my mail database for future
reference; moreover, I then compose using my mailer's editing features.

That will not happen with a form, unless I compose the message in my
mailer, copy it to the form, and then post the mail to a dummy address.

You might consider robotically mailing the question back ...

Better, IMHO, to use a mailto: or otherwise give the actual address, but
disguise it so that a bot will not bother to find it, or will be unable
to recognise it. But don't give anything that a bot is likely to
interpret as an address which is not yours.
Also : when providing such a form, be generous with the text composition
area (width and height), unless the application is so specific that the
message must be short - in which case a questionnaire-form might be
better.

--
© John Stockton, Surrey, UK. ?@merlyn.demon.co.uk Turnpike v4.00 MIME ©
Web <URL:http://www.uwasa.fi/~ts/http/tsfaq.html> -> Timo Salmi: Usenet Q&A.
Web <URL:http://www.merlyn.demon.co.uk/news-use.htm> : about usage of News.
No Encoding. Quotes before replies. Snip well. Write clearly. Don't Mail News.
Jul 23 '05 #4
Dr John Stockton wrote:
JRS: In article <u5********************@comcast.com>, dated Thu, 7 Apr
2005 09:37:38, seen in news:comp.lang.javascript, Randy Webb
<Hi************@aol.com> posted :
The solution to people being able to email you without bots getting your
address? Simple. A form that submits the email data and then emails it
to you.

But be aware of consequences.


The only negative consequence I am aware of with a mailto: form is if
the visiting UA does not support forms.
If I E-mail using someone's mailto:, or using an address obtained by any
other means, then my message is entered in my mail database for future
reference; moreover, I then compose using my mailer's editing features.
That is a negative consequence to the user, not to the page author. And
if the intent is to stop spam-bots from collecting your email address
from a website, then it defeats the purpose of trying to do it if you
are going to put it on the page to allow people to simply click the link
that has the address in it.
You might consider robotically mailing the question back ...


Or, submit the form, and let the resulting page give the actual address.
With server side processing to ensure a robot can't retrieve the page
without submitting the form.
--
Randy
comp.lang.javascript FAQ - http://jibbering.com/faq & newsgroup weekly
Jul 23 '05 #5
Richard Cornford wrote:
pcchong wrote:

So the best that can be achieved is partial protection at present, with
diminishing effectiveness over time.

I remember someone wrote a simple script
to do that, but I can't find it now.


Do not use a (client-side) script for this. They can do no more than
would be achieved by substituting characters for entities in the HTML
and they introduce a needless dependency on client-side scripting.

Richard.


Wouldn't a reasonable solution be to have a (dithered) image of
the email displayed for non javascript browsers (saying this is my
email) to protect the email [or whatever your favorite scheme is
for email protection], and if javascript is enabled, generate a DOM
mailto: element to replace it, and assemble the address (so it
doesn't appear exactly in code), and plop it in.
Spam agents don't look at the DOM, do they? Actually, if I was
a spammer I suppose I would. But then I might also think about
diminishing returns. If someone has gone to the bother of hiding
hir email that well, what is the liklihood that they will respond
to a spam? Anyone know the state of the art on this?
Just on the chance that spammers have reached this useless
state of sophistication, you could refrain from displaying the
email unless a certain event (originating from the user - possibly
a mouse over event) has been interspersed.

Csaba Gabor from Vienna
Jul 23 '05 #6
Csaba Gabor wrote:
Richard Cornford wrote: <snip>
Do not use a (client-side) script for this. They can do no
more than would be achieved by substituting characters for
entities in the HTML and they introduce a needless
dependency on client-side scripting.


Wouldn't a reasonable solution be to have a (dithered)
image of the email displayed for non javascript browsers
(saying this is my email) to protect the email [or whatever
your favorite scheme is for email protection],


Reasonable in the sense of being inaccessible (so illegal under some
jurisdictions) and invalid HTML without an ALT attribute. And the
provision of the attribute would likely put the mark-up back at square
one, containing the email address in text form.

I am not aware of any email address harvesting software that tries OCR
in images, but that is not out of the question.
and if javascript is enabled, generate a DOM mailto: element
to replace it, and assemble the address (so it doesn't appear
exactly in code), and plop it in.
At which point you email address has been laid bare to email harvesting
software based on a scripted IE browser component (probably the easiest
method of defeating script-protected email addresses, and the harvesters
that already do interpret javascript as part of their search.
Spam agents don't look at the DOM, do they?
At least some do.
Actually, if I was a spammer I suppose I would.
As would I. Indeed I sometimes think that posting a WSH/IE browser
component email-address harvester would be a good way of seeing an end
to the debate on the subject.
But then I might also think about diminishing returns.
If someone has gone to the bother of hiding hir email
that well, what is the liklihood that they will respond
to a spam? Anyone know the state of the art on this?
For the people who's business is selling email addresses the willingness
of the owner of the address to receive spam is not a consideration (they
already have their money by that point.
Just on the chance that spammers have reached this
useless state of sophistication, you could refrain from
displaying the email unless a certain event (originating
from the user - possibly a mouse over event) has been
interspersed.


That has been proposed before, though a mouse over would re-introduce
the inaccessibility that the use of an image would imply. But you would
be approaching the point where hiding the email address from spammers
would also be hiding it from the people you would otherwise want to find
it.

Richard.
Jul 23 '05 #7
JRS: In article <Tf********************@comcast.com>, dated Thu, 7 Apr
2005 18:57:37, seen in news:comp.lang.javascript, Randy Webb
<Hi************@aol.com> posted :
Dr John Stockton wrote:
JRS: In article <u5********************@comcast.com>, dated Thu, 7 Apr
2005 09:37:38, seen in news:comp.lang.javascript, Randy Webb
<Hi************@aol.com> posted :
The solution to people being able to email you without bots getting your
address? Simple. A form that submits the email data and then emails it
to you.

But be aware of consequences.


The only negative consequence I am aware of with a mailto: form is if
the visiting UA does not support forms.
If I E-mail using someone's mailto:, or using an address obtained by any
other means, then my message is entered in my mail database for future
reference; moreover, I then compose using my mailer's editing features.


That is a negative consequence to the user, not to the page author.


The purpose of the page author may be merely to obtain remuneration.
But the general intent of writing pages is to be of use, or apparent
use, to the reader. A negative consequence for the reader may cause
negative consequences to the page owner.
And
if the intent is to stop spam-bots from collecting your email address
from a website, then it defeats the purpose of trying to do it if you
are going to put it on the page to allow people to simply click the link
that has the address in it.


But I did not write that. I wrote, as you quoted, "If I E-mail using
someone's mailto:, or using an address obtained by any other means".
One can use a Web page to indicate an E-mail address to a human being
(especially if there is no wish to accommodate those of unusually low
IQ) without making it liable to robotic harvesting. Various ways are
used, and various ways are described, in my Web site.
I rather doubt whether any robot would harvest from
"I am at answer at merlyn demon then co uk if you want to reply."; but
it would be easy to select, copy, paste, and edit that to get a full
address - especially guided by it being on a web page with related URL.

You might consider robotically mailing the question back ...


Or, submit the form, and let the resulting page give the actual address.
With server side processing to ensure a robot can't retrieve the page
without submitting the form.


Another objection to forms, which that seems to double, is the relative
inconvenience for those without permanently-on Net connection.

Forms are, indeed, frequently a preferable solution, at least for the
page owner. Nevertheless, they do have disadvantages, and these should
be considered and as far as possible minimised.

--
© John Stockton, Surrey, UK. ?@merlyn.demon.co.uk Turnpike v4.00 MIME ©
Web <URL:http://www.uwasa.fi/~ts/http/tsfaq.html> -> Timo Salmi: Usenet Q&A.
Web <URL:http://www.merlyn.demon.co.uk/news-use.htm> : about usage of News.
No Encoding. Quotes before replies. Snip well. Write clearly. Don't Mail News.
Jul 23 '05 #8
In article <d3**********@reader01.singnet.com.sg>, pc*****@singnet.com.sg says...
what is the simplest way to put the email address on the homepage so that it
is not readable by email extractor or search engine? I remember someone
wrote a simple script to do that, but I can't find it now. Anyone know
about this? Thanks.


If your host has php capabilities, use this script:

<?
// email.php
// usage:
//
// <A HREF="email.php?to=me&domain=mydomain.com">E-Mail Me</a>-->
//
//

if (!isset($to))
//if(!isset($_GET['to']))
{
// $_GET['to'] = "info";
$to = "info";
}

if(!isset($domain))
{
//$_GET['domain'] = "yourdomain.com";
$domain = "yourdomain.com";
}

// $to = $_GET['to'];
// $domain = $_GET['domain'];

$email_address = $to."@".$domain;

// send email header to page
header ("Location: mailto:$email_address");
?>
Jul 23 '05 #9

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
2839
by: Dr. Paul Caesar - CoullByte (UK) Limited | last post by:
Hi, I have created a Logout ASP.NET application using Forms Authentication. When a user logs out they get a confirmation page confirming logout and a button to click to return to the homepage....
1
2754
by: Ahmed Jewahar | last post by:
Hi, I do not use Frames in my application.(no plan to use since I'm using User control) I use a "user control" which contain a menu in each .aspx pages. Upon clicking option from menu I use...
1
1185
by: perspolis | last post by:
Hi all How can I find the address that user type in address bar?? I have some subdomains that have a homepage.I want to determine which address is user typed and based on that address load...
9
1885
by: chadlupkes | last post by:
I have this code from someone else, and I'm trying to make heads or tails of it because IE doesn't like it. Can anyone help? Or does anyone have a better idea? /* parse the email to check for...
9
2948
by: xhe | last post by:
Hi, I need to program to check the validity of IP address through PHP Initially I used this one: $url="http://www.ntc.gov.au/ViewPage.aspx? page=A02400304500100020"; $fp=fopen($url,"r");...
3
1834
by: xcampanoli | last post by:
When I uncomment either of the http urls below instead of the local file, I always get a readyStatus of zero, and I never get past trace 2 alert. When I use the local file I get readyStatus 1 and...
5
2275
by: simononestop | last post by:
Hi im totally new to perl this is my first go at using it (I normally use asp). I have set up a form with a cgi script from demon hosting. I have edited the script and the form works it sends me an...
0
1801
by: hani1987 | last post by:
hello I am a BE computer student and needed information for my BE project. The project is as follows We are developing a web application for a company. This involves setting up a wi-fi hotpot...
1
1261
by: czi02 | last post by:
what is hosting and domain.. I am new in building a websitr. does the first thing must you do is to name yuor website? where can you find the urls of your website? For example, I wanted to...
0
6967
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
7137
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
1
6846
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
7349
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
1
4874
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
3076
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
3071
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
1381
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...
0
267
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.