Simple Machines Community Forum

Customizing SMF => Modifications and Packages => Topic started by: Sesquipedalian on March 19, 2019, 07:27:08 AM

Title: Email Obfuscator
Post by: Sesquipedalian on March 19, 2019, 07:27:08 AM
Link to the mod (https://custom.simplemachines.org/index.php?mod=4220)

Email Obfuscator

A modification for Simple Machines Forum verion 2.1 that obfuscates email addresses in order to protect them from being harvested by spammers. Real humans accessing your site with a normal browser will see the email address just like normal, but harvesting bots will see only some inline JavaScript filled with random characters.

This should not be relied on as absolute, 100% protection against harvesting bots, but it will help a great deal.


Settings

There is one setting, "Show a fallback version of obfuscated email addresses to users without JavaScript", which is disabled by default. When this option is disabled, users without JavaScript enabled will only see a message telling them that they must enable it to see the hidden content. When this option is enabled, they will see a fallback that uses various HTML and CSS tricks to make the email address illegible to a machine while still appearing to a human like a normal, readable address.


License

Email Obfuscator is released under the MIT License. A full copy of this license is included in the package file.

Email Obfuscator includes a copy of Base64.js, which is released under the BSD 3-clause License. Please see https://github.com/dankogai/js-base64 for details.


Changelog

Version 1.3:

Version 1.2:

Version 1.1:

Version 1.0:
Title: Re: Email Obfuscator
Post by: -Rock Lee- on March 19, 2019, 02:20:11 PM
Actually the logic seems very good, could you apply to the 2.0 branch this? I think it's very useful. Also I leave the translation to Latin Spanish @Sesquipedalian!


Regards!
Title: Re: Email Obfuscator
Post by: Arantor on March 19, 2019, 03:21:17 PM
Or it could be incentive to upgrade to 2.1.
Title: Re: Email Obfuscator
Post by: Biology Forums on March 19, 2019, 05:42:42 PM
This is well overdue! Excellent idea and mod.
Title: Re: Email Obfuscator
Post by: Sesquipedalian on March 23, 2019, 05:07:15 PM
Quote from: Rock Lee on March 19, 2019, 02:20:11 PM
Also I leave the translation to Latin Spanish @Sesquipedalian!

Thank you. I have added your translation in version 1.1. :)
Title: Re: Email Obfuscator
Post by: Sesquipedalian on March 26, 2019, 02:06:58 AM
Quote from: Rock Lee on March 19, 2019, 02:20:11 PM
could you apply to the 2.0 branch this?

This mod uses several integration hooks that only exist in 2.1. That doesn't mean it would be impossible to backport this to 2.0, but it would be awkward and messy.

Quote from: Arantor on March 19, 2019, 03:21:17 PM
Or it could be incentive to upgrade to 2.1.

↑ Words of wisdom.
Title: Re: Email Obfuscator
Post by: -Rock Lee- on March 26, 2019, 09:04:21 AM
Quote from: Sesquipedalian on March 26, 2019, 02:06:58 AM
This mod uses several integration hooks that only exist in 2.1. That doesn't mean it would be impossible to backport this to 2.0, but it would be awkward and messy.

I suspect a little, well it would be another reason to upgrade to 2.1 although I'll wait until the gold version comes out. Thanks for taking the time to respond!


Regards!
Title: Re: Email Obfuscator
Post by: SD-X on April 08, 2021, 01:00:59 AM
Is this still working 100% in 2.1 RC3?

This mod is an amazing idea. If anything, this should be integrated directly into SMF as a core feature for security purposes.
Title: Re: Email Obfuscator
Post by: Kindred on April 08, 2021, 12:13:47 PM
??? ??

security?

If someone posts their email address, how is that an SMF security problem?

Email addresses for USERS in their profile are already not exposed at all....
Title: Re: Email Obfuscator
Post by: Sesquipedalian on May 27, 2021, 03:06:05 PM
Quote from: SugarD-x on April 08, 2021, 01:00:59 AM
Is this still working 100% in 2.1 RC3?

Sorry for the late reply. In answer to your question, yes.
Title: Re: Email Obfuscator
Post by: SD-X on May 28, 2021, 11:08:28 AM
Quote from: Sesquipedalian on May 27, 2021, 03:06:05 PM
Quote from: SugarD-x on April 08, 2021, 01:00:59 AM
Is this still working 100% in 2.1 RC3?

Sorry for the late reply. In answer to your question, yes.
Thank you!
Title: Re: Email Obfuscator
Post by: TurtleKicker on June 10, 2022, 06:41:28 PM
Any reason the mod page hasn't been updated w/ v1.2?
Title: Re: Email Obfuscator
Post by: Diego Andrés on June 10, 2022, 07:32:25 PM
Package says it's 1.2
I'll update the mod page for him since Sesq is not around atm. Done
Title: Re: Email Obfuscator
Post by: Ninja ZX-10RR on June 22, 2023, 11:51:19 AM
Hello there, found quite the bug in this one...
Upon installing it shows black on white PHP at the end of the page in Profile Settings, specifically this:
") { alert('Since you decided to change your email, you will need to reactivate your account. You will now be logged out.'); return true; } }, false); var user_menus = new smc_PopupMenu(); user_menus.add("profile", "https://site/index.php?action=profile;area=popup"); user_menus.add("alerts", "https://site/index.php?action=profile;area=alerts_popup;u=33070"); user_menus.add("pm", "https://site/index.php?action=pm;sa=popup"); });No errors in the error log, upon uninstalling the error disappears.
Regards
Title: Re: Email Obfuscator
Post by: Sesquipedalian on June 30, 2023, 12:30:44 AM
What version of SMF, and what theme are you using?
Title: Re: Email Obfuscator
Post by: Ninja ZX-10RR on June 30, 2023, 05:41:14 AM
2.1.4, theme is irrelevant, happens on default as well but I'm on NameX.
Title: Re: Email Obfuscator
Post by: Sesquipedalian on July 04, 2023, 01:31:12 PM
I found the problem. This occurs when the "Require reactivation after email change" setting is enabled.

I have published version 1.3 to fix it.

Thanks for reporting the issue, @Ninja ZX-10RR! :)
Title: Re: Email Obfuscator
Post by: Ninja ZX-10RR on July 04, 2023, 01:34:46 PM
Fix confirmed to be working as intended, thanks a lot! :D
Title: Re: Email Obfuscator
Post by: Sesquipedalian on July 04, 2023, 01:36:58 PM
Excellent