View Full Version : How do I turn my email address into an image?
inna valler 10-03-2009, 01:33 PM I started to receive a lot of spam recently from my question site and a friend suggested me that is because I have my email address listed in plain text on my contact page, and that I should turn it into an image instead. How do I turn my email address into an image?
TailoredVPS 10-03-2009, 01:47 PM It is fairly easy. Just open MS Paint and write the email in their and save it as a .jpg or .png. Then upload that to your website and use the <img> tag.
Also, this is in the wrong forum.
Mike - Limestone 10-03-2009, 04:00 PM Moderators, would you mind moving this to another forum?
Thanks!
-mike
Mike V 10-04-2009, 12:44 PM Thread moved ;)
ocwebguru 10-04-2009, 01:29 PM <a href="mailto:youremail@address" title="mailto link"><img src="www.imageshack.com/whatever" alt="mailto"></a>
Here is the syntax.
1. <a href mailto tag = your email
2. <img src = picture URL
ocwebguru 10-04-2009, 01:37 PM Also, since you said you were receiving spam, this wont stop it. It may cut it down but it won't stop. The best way to ensure you wont get spam is to encrypt your mailto links. You really should check out this guy Rob Spangler's neat encryption generator.
http://www.robspangler.com/blog/encrypt-mailto-links-to-stop-email-spam/
They can still read the source code using that method and pull out the email address with an automated script. You will be better off setting up a contact form using captcha.
ocwebguru 10-04-2009, 01:43 PM They can still read the source code using that method and pull out the email address with an automated script. You will be better off setting up a contact form using captcha.
Yeah that's why i gave him the link to the encrypt gen. Well because your right, all those "bots/crawlers" do is look at the source so having an image displaying your email address is not the correct way to go about it.
plumsauce 10-04-2009, 09:52 PM Yeah that's why i gave him the link to the encrypt gen. Well because your right, all those "bots/crawlers" do is look at the source so having an image displaying your email address is not the correct way to go about it.
Most of the bots/crawlers only look for name@example.com or whatever follows "mailto:"
They will stop dead on javascript of any kind, such as
<a href="" title=contact" onclick="this.href=somefunction();return(true);">
somefunction() can be just about anything, including referencing document.url to extract the domain name.
An alternative is to just use the jpeg, and let the user type it into their email client.
siforek 10-05-2009, 12:35 AM They can still read the source code using that method and pull out the email address with an automated script. You will be better off setting up a contact form using captcha.
This is the best way to prevent spam, but I personally feel it can be a hassle for those genuinely trying to contact you, so for now we just filer a great deal of spam out.
I daydreamed today that they passed a federal law that spamming will be punishable by death :)
CraftsVision 10-08-2009, 02:02 AM Simply use MS Paint and write your email add there, before saving decrease size of your canvas working area according to the width and height of your email add. Save it as jpg file and use <img> tag to call it in your html pages.
Snukka 10-08-2009, 12:35 PM I know this might be a bit redundant but the worst thing to do in a case like this is to post a mailto: link.
There is a little PHP workaround that might help out :
<?php
$email = "mymail@mail.com";
header("Location:mailto:".$email);
?>
change the email address, save this code to a php file (in my case mailto.php) and link to it.. By hard coding the email address, you hide it from the spambots that roams around..
Hope it helped you..
HTTP404 10-08-2009, 01:48 PM Just use an image and name the image somethink like hello.png. Don't add your address anywhere in the source. Simple.
The best method is to use form, to simplfy things, and if your using WHMCS you can use there source from the pre-sales contact form.
|