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
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
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.)
#3
Here's the current 4.7 version of urlfilter.module with my hacks (attached). I tested it, and it appears to work correctly.
#4
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"