Discuss Anything: Encode Your Email Address - Discuss Anything

Jump to content


Welcome to KnowledgeSutra - Dear Guest , Please Register here to get Your own website. - Ask a Question / Express Opinion / Reply w/o Sign-Up!
Page 1 of 1

Encode Your Email Address Confuse the Spam Bots, but not your viewing clients Rate Topic: -----

#1 User is offline   jlhaslip 

  • Insert Custom Title Here
  • PipPipPipPipPipPipPipPipPipPipPipPipPipPipPipPipPipPipPipPipPip
  • Group: [MODERATOR]
  • Posts: 5,035
  • Joined: 24-July 05
  • Gender:Male
  • Location:Linux, DOS and Windows…the good, the bad and the ugly
  • Interests:http://jim.haslip.googlepages.com/home
  • myCENT:43.02
  • Spam Patrol
  • Current Mood: Current Mood: None Chosen

Posted 15 October 2007 - 09:33 PM

Spam bots often 'scrape' pages to glean information and collect email addresses. I don't like that.
To combat the Bots from collecting my address off of my site, I wrote a script that includes 'obscures' the address in several ways.

It adds 'AT' where the '@' sign is and then replaces the '.' with 'DOT' so it is humanly readable, but not by the Bots.
Also, it encodes the 'mailto' and the address used in the 'mailto' so it shows okay on the web page and on:hover, but it is actually encode into hex values on the page. Sort of like Html Entities, which 'most' Bots cannot read. But they are becoming smarter all the time, so there is no guarantee that this will work all the time for all Bots..

The demo site can be used to create the obfuscated (Whew, big word!) link tag for use on your own site if you are new to Web site building and do not yet feel comfortable with coding php or templates..

Experienced Developers/Coders can download the core components from here. Three functions. I wrote the functions so the code would be re-usable for other tasks.

One function replaces the '@' and '.'.
The other one is a generic string encoding function. It could also be used to encode code snippets on your pages, too... :P
0


Page 1 of 1

Other Replies To This Topic

#2 User is offline   shadowx 

  • Live your life so that in death you may stand side by side with your gods. Not at their feet.
  • PipPipPipPipPipPipPipPipPipPipPipPipPipPip
  • View gallery
  • Group: Kontributors
  • Posts: 1,606
  • Joined: 12-April 06
  • Gender:Male
  • Location:Essex, UK
  • Interests:Photography is a big interest, i have some photos up at my site, apex photographs (http://apex-photographs.com). Using my Lumix g1 to take the photos of course! <br /><br />Um computer games... photo editing and thats about it!
  • myCENT:84.40
  • Spam Patrol
  • Current Mood: Current Mood: None Chosen

Posted 15 October 2007 - 09:42 PM

Nice bit of code there!

nowadays whenever i make a contact page i always use a PHP MAIL command to hide the address and i avoid writing my email address anywhere on the net too but it can be useful to create MAILTO links and this is a good way of protecting them

When making a website for a relative they needed a contact page and wanted an image link with a MAILTO so i may very well end up using this little snippet if thats ok with you?

Im more than happy to put a mention in the source code but as its for a paying client im reluctant to have a user-visible mark. Of course my use of the code is up to your discretion :P
0

#3 User is offline   jlhaslip 

  • Insert Custom Title Here
  • PipPipPipPipPipPipPipPipPipPipPipPipPipPipPipPipPipPipPipPipPip
  • Group: [MODERATOR]
  • Posts: 5,035
  • Joined: 24-July 05
  • Gender:Male
  • Location:Linux, DOS and Windows…the good, the bad and the ugly
  • Interests:http://jim.haslip.googlepages.com/home
  • myCENT:43.02
  • Spam Patrol
  • Current Mood: Current Mood: None Chosen

Posted 15 October 2007 - 10:25 PM

I have a version which produces an Image link, too. The Image can get created dynamically, or from a saved file if it is available, but there is a problem with accessing the Fonts here on the Trap, so I didn't post that one.

If you need the code for the Image-based version, PM a request. It works fine on my localhost (XAMPP) installation. If you have GD with T1Lib installed, which a standard XAMPP does, it will likely work on your machine.

And all of my stuff is Licenced under the Creative Commons - attributtion - share-alike standards, so, yes, you may borrow the code. Simply retain the copyright in the script and pass it on. Whether you alter the code or not, the copyright needs to follow it.

A link-back is not required, but that would be nice. :P
0

#4 User is offline   shadowx 

  • Live your life so that in death you may stand side by side with your gods. Not at their feet.
  • PipPipPipPipPipPipPipPipPipPipPipPipPipPip
  • View gallery
  • Group: Kontributors
  • Posts: 1,606
  • Joined: 12-April 06
  • Gender:Male
  • Location:Essex, UK
  • Interests:Photography is a big interest, i have some photos up at my site, apex photographs (http://apex-photographs.com). Using my Lumix g1 to take the photos of course! <br /><br />Um computer games... photo editing and thats about it!
  • myCENT:84.40
  • Spam Patrol
  • Current Mood: Current Mood: None Chosen

Posted 16 October 2007 - 11:10 AM

Quote

And all of my stuff is Licensed under the Creative Commons - attribution - share-alike standards, so, yes, you may borrow the code. Simply retain the copyright in the script and pass it on. Whether you alter the code or not, the copyright needs to follow it.


Good news then! The copyright will follow it if i do indeed use this code. I wont put a link back thats visible because this website is for a paying client but if i use the code on any of my websites then i will definitely have a link back, i hope you dont mind that :P

I wont bother with the image code as im not a fan of using the GD library and image manipulation in PHP as its a bit too object orientated for me, but one day i will branch into OO PHP

Thanks for letting me and everyone else use the code, im sure it will be very useful
0

#5 User is offline   jlhaslip 

  • Insert Custom Title Here
  • PipPipPipPipPipPipPipPipPipPipPipPipPipPipPipPipPipPipPipPipPip
  • Group: [MODERATOR]
  • Posts: 5,035
  • Joined: 24-July 05
  • Gender:Male
  • Location:Linux, DOS and Windows…the good, the bad and the ugly
  • Interests:http://jim.haslip.googlepages.com/home
  • myCENT:43.02
  • Spam Patrol
  • Current Mood: Current Mood: None Chosen

Posted 16 October 2007 - 07:27 PM

*UPDATED OCT 16/2007*

Fixes:
1.) Corrected the Download Link - removed an extra character in "iindex"
2.) Corrected the default email address displayed - removed a trailing 'a'
3.) Added additional check for bad User input - function to clean some bad stuff
4.) Converts html entities - again, a security issue

That should do it for now. Let me know if you have any difficulties with the script.

Thanks.

*UPDATED OCT 17/2007*

Fixes:

5.) Fixed validation of "&'s"in the Trap link
6.) Corrected Licence link to Creative Commons
0

#6 User is offline   jimmie32 

  • Newbie [Level 1]
  • Pip
  • Group: Kontributors
  • Posts: 13
  • Joined: 10-October 07
  • Current Mood: Current Mood:

Posted 20 October 2007 - 06:44 PM

I Encoded like this:

myname[dot]32[at]gmail[dot]com

But there is a another way, like:

Before: myname.32@gmail.com
After: NOSPAM---myname.32@gmail.com

Adding NOSPAM is great too.
0

Share this topic:


Page 1 of 1


Similar Topics Collapse

  Topic Forum Started By Stats Last Post Info
Locked Topic Icon I Am Confused With Trap17 Forum Questions & Queries Robbie Rotten 
  • 2 Replies
  • 894 Views
Hot Topic (New) Icon Send Fake Sms From Your Nokia Phone
sending SMS with your own From address
Mobility, Mobile Phones kuberan_swe 
  • 21 Replies
  • 12,665 Views
New Replies Icon Damn Spam Emailers! General Talk Mjay06 
  • 8 Replies
  • 755 Views
Hot Topic (New) Icon Huge 1 Terrabyte Email Account
FOR FREE!!!!!!
Freebie Stuff CrazyRob 
  • 23 Replies
  • 2,660 Views
New Replies Icon Nice Effects With Picture Viewing/manupulating ... Web Design martinnovoty 
  • 1 Reply
  • 787 Views
New Replies Icon I Have The Email Saying Put A Link To The Site... your Secret HideOut Seńor Maniac 
  • 8 Replies
  • 4,416 Views
Hot Topic (New) Icon Auto-delete Your Spam In Gmail
finally, get rid of all that spam!
GMail bthaxor 
  • 21 Replies
  • 8,124 Views
New Replies Icon Regarding My Hosting Request
already approved but no confirm email
Questions & Queries [cilver] 
  • 3 Replies
  • 663 Views
New Replies Icon Ebay Sales 3 Gameboys Im So Confused!
help PLEASE!!
Computers Final)arkJon 
  • 1 Reply
  • 2,208 Views
New Replies Icon How To Stop Spamming Software contactskn 
  • 7 Replies
  • 313 Views
New Replies Icon Want To Know Anything About Robots Today?
read this VERY comprehensive article
Science & Technology realthor 
  • 8 Replies
  • 1,317 Views
*New Replies Icon The new Movie Robots General Talk Guest_nickpalmer_* 
  • 3 Replies
  • 1,976 Views
Locked Topic Icon Email Address Revealed
in the Free Web Hosting Application
Suggestions EinReaper 
  • 9 Replies
  • 728 Views
New Replies Icon How Can We Get The Details Shown By Who Is For Any Ip Address On Our Site. PHP Programming contactskn 
  • 2 Replies
  • 428 Views
New Replies Icon I Won't Do It Again!
don't spam
your Secret HideOut epox 
  • 5 Replies
  • 819 Views
Hot Topic (New) Icon Your Own Domain's Email Address...free
Get your own email with your own domain for free
Science & Technology brweb 
  • 18 Replies
  • 5,244 Views
New Replies Icon Special Characters In The Web Address * - - - -
help nedded for using special characters in the path and then usin the
Technical Support webaddict 
  • 0 Replies
  • 1,200 Views
Locked Topic Icon Email Graphics?
How do you make those email graphics?
Tutorials CrashCore 
  • 4 Replies
  • 1,634 Views
New Replies Icon Attachments The Awesome "fail" Topic
Spam with Fail pics of fun! :)
Pictures -Sky- 
  • 9 Replies
  • 234 Views
New Replies Icon What Is Remote Viewing? Is It Possible? Operating Systems FruitRocks 
  • 5 Replies
  • 374 Views

1 User(s) are reading this topic
0 members, 1 guests, 0 anonymous users


Google Fan :-) We Recommend Firefox.     Customize / Settings Connect Us on facebook