Webmaster Forum

Go Back   Webmaster Forum > Web Development > Web Design Lobby

Web Design Lobby Forum for general web design issues not specific to scripting or graphics.


Reply
 
Thread Tools Display Modes
Share |
  #1  
Old 02-26-2013, 06:02 PM
chcw chcw is offline
Junior Member
 
Join Date: 02-26-13
Posts: 2
iTrader: 0 / 0%
How to prevent spam-bot to collect email address from my website?

On my website, we provide both web-based form and email hyperlinks. For web-based form, we use Captcha to prevent spam. However, for email hyperlinks, how to prevent the robot to collect the email address?

For example, in the following email hyperlink:

Please contact me at <a href="mailto:chcw@hotmail.com" class="blue">chcw@hotmail.com </a>

For the text "chcw@hotmail.com" in the <a></a> tag, I can replace the "@" with an image. But for attribute in href="mailto:chcw@hotmail.com", how to protect it?

Thank you.
 
Reply With Quote

Advertisement

Advertisement

  #2  
Old 02-26-2013, 06:15 PM
SolidShellSecurity's Avatar
SolidShellSecurity SolidShellSecurity is offline
Contributing Member
 
Join Date: 01-09-12
Posts: 139
iTrader: 1 / 100%
You can use encrypted javascript to write the emails. most harvesters won't load JS.
 
Reply With Quote
  #3  
Old 02-27-2013, 09:40 AM
chcw chcw is offline
Junior Member
 
Join Date: 02-26-13
Posts: 2
iTrader: 0 / 0%
Are there any easy way to solve the problem? I don't know JS. Sorry.
 
Reply With Quote
  #4  
Old 03-02-2013, 03:32 PM
nathan.joshua's Avatar
nathan.joshua nathan.joshua is offline
Contributing Member
 
Join Date: 03-31-12
Posts: 132
iTrader: 0 / 0%
Put this between your <head></head> tags.
Code:
<script type="text/javascript"> var tld_ = new Array() tld_[0] = "com"; tld_[1] = "org"; tld_[2] = "net"; tld_[3] = "ws"; tld_[4] = "info"; tld_[10] = "co.uk"; tld_[11] = "org.uk"; tld_[12] = "gov.uk"; tld_[13] = "ac.uk"; var topDom_ = 13; var m_ = "mailto:"; var a_ = "@"; var d_ = "."; function mail(name, dom, tl, params) { var s = e(name,dom,tl); document.write('<a href="'+m_+s+params+'">'+s+'</a>'); } function mail2(name, dom, tl, params, display) { document.write('<a href="'+m_+e(name,dom,tl)+params+'">'+display+'</a>'); } function e(name, dom, tl) { var s = name+a_; if (tl!=-2) { s+= dom; if (tl>=0) s+= d_+tld_[tl]; } else s+= swapper(dom); return s; } function swapper(d) { var s = ""; for (var i=0; i<d.length; i+=2) if (i+1==d.length) s+= d.charAt(i) else s+= d.charAt(i+1)+d.charAt(i); return s.replace(/\?/g,'.'); } </script>
Then put this: <script>mail("mailto:chcw","hotmail",0,"")</script> where you want the link to appear.

Source: http://www.bronze-age.com/nospam/
 
Reply With Quote
  #5  
Old 03-06-2013, 12:36 PM
smanaher's Avatar
smanaher smanaher is offline
v7n Mentor
 
Join Date: 03-04-13
Location: Oneonta, NY
Posts: 329
iTrader: 0 / 0%
Chcw,

You could search for a bot blacklist for .htaccess if your server supports use of that configuration file. Then you could prevent most malicious bots from coming to your website in the first place.

Hope that helps,

Shawn
 
Reply With Quote
  #6  
Old 03-11-2013, 09:01 AM
GotLiveChat GotLiveChat is offline
Contributing Member
 
Join Date: 01-21-11
Location: Horseheads, NY
Posts: 71
iTrader: 0 / 0%
A few alternatives:

1) Create images of the emails. Obviously they won't be click-able, but make them short enough so not too difficult to enter by hand.

2) Joe.Shmoe AT thecompanyname DOT com

3) Don't offer up the linked emails; use just the web FORM to accept submissions. If you're already using CAPTCHA then you'll prevent pesky bots from auto-submitting.
 
Reply With Quote
Go Back   Webmaster Forum > Web Development > Web Design Lobby

Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
How to make form email to more than 1 email address MissTa Coding Forum 2 04-20-2010 09:27 AM
Promote Your website using this Email Address Importer Script wands Marketing Forum 0 09-14-2008 06:32 PM
Masking email address in email davest Marketing Forum 3 04-24-2008 08:47 AM
two email accounts for one email address; to recieve tagged spam tooltime Tech Talk 4 09-05-2006 11:58 AM
Evils of spam prevent any sales first contacts via email? Digiteyes Marketing Forum 8 11-19-2003 05:00 PM


V7N Network
Get exposure! V7N I Love Photography V7N SEO Blog V7N Directory


All times are GMT -7. The time now is 05:32 PM.
Powered by vBulletin
Copyright 2000-2014 Jelsoft Enterprises Limited.
Copyright © 2003 - 2018 VIX-WomensForum LLC