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?

Comments

sushiGer’s picture

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...

Scott’s picture

StatusFileSize
new1.98 KB

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.)

Scott’s picture

Version: 4.6.x-1.x-dev » 4.7.x-1.x-dev
StatusFileSize
new4.91 KB

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

solutiondrop’s picture

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"

pomliane’s picture

Status: Active » Closed (won't fix)

This version of Urlfilter is not supported anymore. The issue is closed for this reason.
Please upgrade to a supported version and feel free to reopen the issue on the new version if applicable.

This issue has been automagically closed by a script.