FUDforum
Fast Uncompromising Discussions. FUDforum will get your users talking.

Home » FUDforum Development » Plugins and Code Hacks » Email Obfuscation Plugin (Obfuscates email addresses imported by mail gateway)
Show: Today's Messages :: Unread Messages :: Polls :: Message Navigator
| Subscribe to topic | Remove from bookmarks 
Switch to threaded view of this topic Create a new topic Submit Reply
Email Obfuscation Plugin [message #168498] Sun, 12 May 2013 03:15 Go to next message
cpreston is currently offline  cpreston   United States
Messages: 160
Registered: June 2012
Location: Oceanside
Karma: 6
Senior Member
add to buddy list
stop ignoring messages by this user
When importing 10s of thousands of emails into a public forum, we thought it really important to obfuscate email addresses so that people who emailed a mailing list didn't get their email address displayed to the world. That's what this plugin does.

First it identifies email addresses using a pretty good regular expression. Then, each email address is obfuscated by replacing @ to " $RAN1 at $RAN2" and '.' to " $RAN1 dot $RAN2 " where $RAN1 and $RAN2 are a fixed number of random alphanumeric characters. The length of the alphanumeric characters can be specified in the plugin.

This does not modify the email addresses in the database, It just obfuscates them when they are published. When unpublished, the email id's would appear in their normal state.

This makes the obfuscation completely random to make it harder to scrape, but it allows a human to read it just fine if they want to take the time. Make sense?

Test it and let me know what you think?
Re: Email Obfuscation Plugin [message #168499 is a reply to message #168498] Sun, 12 May 2013 04:09 Go to previous messageGo to next message
naudefj is currently offline  naudefj   
Messages: 3772
Registered: December 2004
Karma: 28
Senior Member
Administrator
Core Developer
add to buddy list
ignore all messages by this user
Great idea! Some sugestions:

1. The code to rebuild themes can be removed (not required)
2. Remove reference to 'Fudla'
3. The regex doesn't catch e-mail addresses in posts (or maybe not all of them).

PS: Can we include this plugin with the next release?

Best regards.
Frank
Message by cpreston is ignored  [reveal message]  [reveal all messages by cpreston]  [stop ignoring this user] Go to previous messageGo to next message
Message by cpreston is ignored  [reveal message]  [reveal all messages by cpreston]  [stop ignoring this user] Go to previous messageGo to next message
Message by cpreston is ignored  [reveal message]  [reveal all messages by cpreston]  [stop ignoring this user] Go to previous messageGo to next message
Re: Email Obfuscation Plugin [message #168553 is a reply to message #168551] Tue, 21 May 2013 12:32 Go to previous messageGo to next message
naudefj is currently offline  naudefj   
Messages: 3772
Registered: December 2004
Karma: 28
Senior Member
Administrator
Core Developer
add to buddy list
ignore all messages by this user
Looks a lot better! But it can be further improved by skipping post/edit pages. Try to edit a message with an e-mail address to see why this would be important.
Message by cpreston is ignored  [reveal message]  [reveal all messages by cpreston]  [stop ignoring this user] Go to previous messageGo to next message
Message by cpreston is ignored  [reveal message]  [reveal all messages by cpreston]  [stop ignoring this user] Go to previous messageGo to next message
Re: Email Obfuscation Plugin [message #168559 is a reply to message #168555] Thu, 23 May 2013 12:21 Go to previous messageGo to next message
naudefj is currently offline  naudefj   
Messages: 3772
Registered: December 2004
Karma: 28
Senior Member
Administrator
Core Developer
add to buddy list
ignore all messages by this user
Thanks. Committed at http://fudforum.svn.sourceforge.net/fudforum/?rev=5611&view=rev
Message by cpreston is ignored  [reveal message]  [reveal all messages by cpreston]  [stop ignoring this user] Go to previous messageGo to next message
Message by cpreston is ignored  [reveal message]  [reveal all messages by cpreston]  [stop ignoring this user] Go to previous messageGo to next message
Message by cpreston is ignored  [reveal message]  [reveal all messages by cpreston]  [stop ignoring this user] Go to previous message
Quick Reply
Formatting Tools:   
  Switch to threaded view of this topic Create a new topic
Previous Topic: Adding References: header to mailing list emails
Next Topic: SEO url mods question
Goto Forum:
  

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ]

Current Time: Thu Dec 05 14:14:22 EST 2024

Total time taken to generate the page: 0.03870 seconds