![]() |
Email address masking / obfuscation - Protect your users from spam!
No longer supported by the author.
|
thanks!
|
Very VERY useful...Thanks.
|
Can you please make a txt file so others can download it and have it for when they upgrade their vBulletin? ;)
|
Quote:
Do you really do that btw? Re-install all hacks from scratch using text files? Doesn't that take a long while? All I do is make sure that I mark any hacks I do with this: // HACK : START : HACK_NAME // HACK : END : HACK_NAME And when it comes to upgrading I search for a list of files that include the whole word HACK in upper case... then I DIFF the old and new files and copy over just the things in HACK blocks... the DIFF engine puts them in the right place :) Much easier, and doesn't require me to re-install anything. Takes about 20 minutes to do the whole thing, and I have a VERY heaviliy hacked forum :) |
It also helps me strip out unwanted hacks as I just search for the HACK_NAME.
Oh, and if hacks required a change to an existing line, I leave the original there but commented out just in case I do want to rollback :) |
my users will feel safer now :) thanks for sharing
|
/me installs
|
Just thinking... do people want variances on the pattern it shows?
So instead of just re-formatting as: test (at) example (dot) com It might also do things like: moc . elpmaxe @ tset < backwards Or: test@AUDENexample.com < minus poet |
I'd like a modification that turns e-mails into images displaying the image, and makes the image a mailto: link - possible?
In the meantime, this hack is great! |
Erm... please clarify.
Basically an image created by GD library instead of text. But the mailto: still there? Could do that :) If that is what you want. |
I think there are many possibilities for this good idea :)
I suppose it could be done with or without the mailto - but spiders that search for the mailto: will render that one pointless. Unless, however, no mailto is used - OR - for every symbol used in the address, it is replaced with its ASCII value, which in HTML is in it's raw ASCII format, but when clicked/mouse overed it renders without any javascript.. HTML Code:
<a href="mailto:jimpsed@hellp.com">jimpsed@hellp.com</a> Code:
<a href="mailto:jimpsed@hellp.com">jimpsed@hellp.com</a> This "solution", however, is only good if the spiders are only going through the HTML of a web page - I do not know, though. |
Buro,
Does this hack conflict with other JS? Inserted the code into the functions_bbcodeparse.php (and saved it ;) ), but when testing it nothing shows up, just a blank post. :( Remove the code, email linking returns fine. Tested it on a 3.0.7 modded style and the default (unmodded) style, to no avail. Chris |
Quote:
However... if any prior JavaScript on a page has an error, then subsequent JavaScript may not execute. So I would recommend you find what JavaScript you have that is causing errors and fix that :) You can turn on "Show an alert for each script error" within the Advanced options of IE's Internet Options... or in Firefox turn on the JavaScript console. Once the thing that is causing the error is fixed, then this will work too :) |
this works also in 3.5
you only have to use /includes/class_bbcode.php (instead the functions_bbcodeparse.php). thanks buro9 :) |
Quote:
Do people need me to re-publish this as a 3.5 hack to get the warm fuzzies about it? |
Quote:
I didn?t do that because it is your mod. |
<a href="https://vborg.vbsupport.ru/showthread.php?t=96195&highlight=email+address" target="_blank">https://vborg.vbsupport.ru/showt...=email+address</a>
My Version for vb3.5 - not necessarily email abfusbication (sp?) but it converts the email address into a link to PM the person who posted it. |
Hi, I installed, it works however when someone edits a post the email doesn't show up and this is what appears after saving:
a = unescape('%40');d = unescape('%2e');m = 'mailto:';document.write ... etc. This happens every time somebody edits a post so I can't keep this unless there's a workaround ?? Thanks |
Good point fcherub. I ran into this bug also. I haven't had time to make a fix though. buro9, you up to the challenge?
|
Quote:
I only spotted this and decided to take a look at it ..... 1: Upload : emailimage.php (to FORUM ROOT) [ attached at bottom of ] 2: Upload : banner.png (to FORUMROOT/IMAGES) [attached at bottom of post ] 3 : Instead of the original code in functions_bbcodeparse.php use : Code:
// HACK : START : MASK EMAIL p.s. the only change is changing $disp near the bottom of the code to <img src=emailimage.php?text=$disp border=0> and change what @ and . should change to. theres still an error with the editing function with this system - and users will have to enter the mail address again if they edit , but it seems to work ok. |
All times are GMT. The time now is 03:17 PM. |
Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|