Register Advertise with usHelp Desk Today's Posts Search

Closed Thread
Thread Tools Search this Thread
Unread 24th Jan 2015, 10:33 AM   #1
Active Warrior
 
Join Date: 2013
Posts: 70
Thanks: 20
Thanked 2 Times in 2 Posts
Arrow
Preventing bots from picking emails from posts?
Share on: 
fb share twitter share gplus share more share

How to leave an email address like email@email.com on a post and prevent bots from picking it up automatically? I want to hide them from bots, but visible on the page like email@email.com so that people could copy-paste them without any problems (like any other text), but it would be invisible to bots.

Any ideas on this? Also, these emails would be visible only as a text, not hyperlink. But bots can pick them up even as a text.
Haship is offline  
Unread 24th Jan 2015, 09:10 PM   #2
HyperActive Warrior
 
Member8200's Avatar
 
Join Date: 2008
Posts: 310
Thanks: 10
Thanked 39 Times in 35 Posts
Default
Re: Preventing bots from picking emails from posts?
Share on: 
fb share twitter share gplus share more share

in my best of knowledge, i don't think that's possible.
if it's visible to people then it's also visible to bots or any possible scraping software.
Member8200 is offline  
Unread 25th Jan 2015, 07:55 AM   #3
Active Warrior
 
Join Date: 2013
Posts: 70
Thanks: 20
Thanked 2 Times in 2 Posts
Default
Re: Preventing bots from picking emails from posts?
Share on: 
fb share twitter share gplus share more share

Maybe hiding emails like craiglists hides phone numbers in the description would be a good option?

How to even do that in a normal wordpress post? I mean write an email address and show it only to people who clicked on "show" or something like that. Also, making it invisible to bots.
Haship is offline  
Unread 3rd Feb 2015, 01:14 PM   #4
Marketer & Entrepreneur
War Room Member
 
martbost's Avatar
 
Join Date: 2010
Location: Moody, AL
Posts: 350
Thanks: 21
Thanked 74 Times in 67 Posts
Blog Entries: 25
Default
Re: Preventing bots from picking emails from posts?
Share on: 
fb share twitter share gplus share more share

Most bots have the ability to scrape the elements and tags from the web content and extrapolate what is underneath, regardless of whether it is obfuscated or not.

The best approach to email addresses in posts is to implement vanity addresses that can be turned off or redirected if needed. If it is a personal email address that you are concerned with, do not disclose it as most scrapers and harvesters will pick it up.

martbost is offline  
Unread 3rd Feb 2015, 04:27 PM   #5
Active Warrior
 
minirich's Avatar
 
Join Date: 2014
Location: Austria, Vienna
Posts: 52
Thanks: 16
Thanked 10 Times in 10 Posts
Default
Re: Preventing bots from picking emails from posts?
Share on: 
fb share twitter share gplus share more share

You are not the first one with this problem, every blog software has several solutions for this problem.
These scrapers go for the page source. So if you can get any visual representation of text without it showing up somehow in the page source they wont find it.

So if you are on word press or joomla there are probably a couple of plugins to deal with this.

If not, there are some other suggestions ordered easy to sophisticated:
  • do not use mailto links (As it is a sure sign of an email)

  • add spaces between the characters of the mail: m a i l @ m a i l . c o m (probably too weak)

  • Generate a gif image out of the email.
    there are several solutions use the one you like best, search on google for "covert text to gif" + [your favorite language].

  • Or html character encode the email.
    there is a function in php to encode any text in html entities. (you could even double encode it)
    mail@mail.com will become mail@mai&# x6C;.com
A very good article how to handle it in php can be found here:
Tutorials - Anti Spam Techniques In Php Part1 | ApPHP - Professional PHP Web Scripts

Mike
minirich is offline  
Unread 4th Feb 2015, 10:22 PM   #6
Active Warrior
 
Join Date: 2011
Posts: 30
Thanks: 0
Thanked 6 Times in 6 Posts
Default
Re: Preventing bots from picking emails from posts?
Share on: 
fb share twitter share gplus share more share

A technique that might help would be to populate the emails onto the page via javascript, most of the basic scrapers typically won't load up entire html documents, execute the javascript and then process the content. And while its in your javascript you could easily store it a number of different ways so its not scrapable from the javascript (base64, letter replacement, loaded into an array, etc)
tanerax is offline  
Unread 5th Feb 2015, 10:22 AM   #7
Senior Warrior Member
War Room Member
 
Join Date: 2009
Posts: 1,057
Thanks: 124
Thanked 198 Times in 147 Posts
Default
Re: Preventing bots from picking emails from posts?
Share on: 
fb share twitter share gplus share more share

I've never had an issue with simply assembling it in pieces with JavaScript using a simple document.write script. There are tons of tutorials available on how to do that if you Google.

rhinocl is offline  
Unread 5th Feb 2015, 03:05 PM   #8
HyperActive Warrior
War Room Member
 
emptee's Avatar
 
Join Date: 2014
Location: New Zealand
Posts: 210
Thanks: 25
Thanked 81 Times in 71 Posts
Default
Re: Preventing bots from picking emails from posts?
Share on: 
fb share twitter share gplus share more share

This is getting harder and harder to manage - many "bots" these days are using actual browser engines to process the page, then pull content from the DOM. I suspect this is how things are going to continue, as this is the laziest way of scraping sites that use AJAX.

What this means, is that if you're using document.write, or html encoding stuff, it still winds up in the dom, and can still be scraped..

The method I've found to be foolproof (so far) is this:

1) create a div to hold your email address
2) create three float:left;position:relative divs in the following order (change this up if you want)
i) <div class="...">domain.com</div>
ii) <div class="...">myemail</div>
iii) <div class="...">@</div>
3) to make it clickable, set the onclick of the div to something like..
function doit() {
var i = "domain.com";
var j = "myemail";
var loc = "mailto:" + j + "@" + i;
eval("document.location=loc;");
}


Hope that helps - I suspect it will be a while before that gets scraped, as we're not leaving anything that _looks_ like an email address anywhere in the dom. And while "mailto" is visible, it's not in a context that's useable.

You could always obfuscate things further if you want - split up the mailto into two parts so it isn't found.. return string parts from functions so they're not visible in the same body...

You get the idea


Michael
emptee is offline  
Closed Thread


Bookmarks

Tags
bots, emails, picking, posts, preventing


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
Trackbacks are Off
Pingbacks are Off
Refbacks are Off




All times are GMT -6. The time now is 01:44 PM.