URL filter: use anti-harvesting measures on email addresses?

laura s - July 22, 2005 - 18:27
Project:Urlfilter
Version:4.7.x-1.x-dev
Component:Code
Category:feature request
Priority:normal
Assigned:Unassigned
Status:active
Description

One thing I really liked about the old BBCode filter was that it converted email links into scrambled code so crawlers could not read it. I think it required JS to see and click the link. Is there any interest in implementing something like this for the URL filter?

#1

sushiGer - August 26, 2005 - 06:06

Hi!

I have written something like this but did not have an CVS access to add an extra module.
So if you all are interested, I can post the module here....
It must be able to integrate my code into the URL Filter, I think...

#2

Scott - May 12, 2006 - 04:25

I don't know how to create a patch file, but I've attached my hacked-up version of urlfilter.module.

My email cloaking script is very simple and won't outwit all spammers, but I've found it does seem to reduce spam harvesting. It would be easy to replace it with a better cloaking routine if you have one; just change the email_encode() function.

I also slightly modified the regular expressions to recognize email addresses that are followed by a break tag or a semicolon.

(Note: Of course the word "HACKED-" must be removed from the filename.)

AttachmentSize
HACKED-urlfilter.module 1.98 KB

#3

Scott - May 29, 2006 - 23:21
Version:4.6.x-1.x-dev» 4.7.x-1.x-dev

Here's the current 4.7 version of urlfilter.module with my hacks (attached). I tested it, and it appears to work correctly.

AttachmentSize
HACKED_4-7_urlfilter.module 4.91 KB

#4

droplits - December 31, 2006 - 11:19

You can achieve this goal by using urlfilter and invisimail (http://drupal.org/node/30885) together.

For your input format rearrange the filters so that "Encode email addresses" comes before "URL filter"

 
 

Drupal is a registered trademark of Dries Buytaert.