1
artigas
Cloaking email addresses to prevent harvesting
  • 2005/4/22 5:41

  • artigas

  • Quite a regular

  • Posts: 208

  • Since: 2004/12/21


Greetings -

There are bots that go to websites and harvest or scrape email addresses from their web pages. We have several XOOPS modules that collect email addresses and display them or embed them with the 'mailto:' tag on web pages that get displayed making posible for spamers using spam bots to scrape those emails for whatever purposes.

This following link at https://www.clariondeveloper.com/webcloak/index.htm provides a solution for cloaking email addresses in such a way that makes it very dificult to harvest or scrape email addresses by a spam bot.

I am sugesting that it would be usefull if this technique or a similar one was built into XOOPS as part of the core routines so they could be called by module developers and used to make it very difficult for spam bots to collect email addresses from XOOPS sites.

Hope That Helps.

2
Herko
Re: Cloaking email addresses to prevent harvesting
  • 2005/4/22 6:57

  • Herko

  • XOOPS is my life!

  • Posts: 4238

  • Since: 2002/2/4 1


There is also a Smarty solution for this:
http://smarty.php.net/manual/en/tips.obfuscating.email.php

Herko

3
artigas
Re: Cloaking email addresses to prevent harvesting
  • 2005/4/22 12:22

  • artigas

  • Quite a regular

  • Posts: 208

  • Since: 2004/12/21


Greetings Herko -

Thank you for the response and the pointer to the Smarty solution.

4
jtessier72
Re: Cloaking email addresses to prevent harvesting
  • 2005/5/18 3:54

  • jtessier72

  • Just popping in

  • Posts: 3

  • Since: 2005/5/18


I know this solution isn't ideal, but something is better than nothing. The '@', the '.' and the 'mailto:' get encoded. It should apply to all modules as well.

I'd appreciate comments on this - just learning PHP as I go. Ideally I'll only execute this if it's a mailto: link.

Edit the end of the &xoopsCodeDecode function in class/module.textsanitizer.php

$output preg_replace($patterns$replacements$text);
        
$output str_replace('@''&X64;'$output);
        
$output str_replace('.''&X46;'$output);
        
$output str_replace('mailto:''&X109;&X97;&X105;&X108;&X116;&X111;&X58;'$output);
        return 
$output;

        
//return preg_replace($patterns, $replacements, $text);


In this example, you get the following for user@host.com:

<a href="&X109;&X97;&X105;&X108;&X116;&X111;&X58;user&X64;host&X46;com">user&X64 ;host&X46 ;coma>


Replace &X with &# to get the right results.

Login

Who's Online

384 user(s) are online (282 user(s) are browsing Support Forums)


Members: 0


Guests: 384


more...

Donat-O-Meter

Stats
Goal: $100.00
Due Date: Nov 30
Gross Amount: $0.00
Net Balance: $0.00
Left to go: $100.00
Make donations with PayPal!

Latest GitHub Commits