PDA

View Full Version : Email address masking / obfuscation - Protect your users from spam!


buro9
05 Apr 2005, 11:49
No longer supported by the author.

yoyoyoyo
05 Apr 2005, 14:03
thanks!

jugo
05 Apr 2005, 14:16
Very VERY useful...Thanks.

Boofo
05 Apr 2005, 15:04
Can you please make a txt file so others can download it and have it for when they upgrade their vBulletin? ;)

buro9
05 Apr 2005, 15:14
Can you please make a txt file so others can download it and have it for when they upgrade their vBulletin? ;)
Done :)

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

buro9
05 Apr 2005, 15:15
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 :)

Polo
05 Apr 2005, 16:27
my users will feel safer now :) thanks for sharing

Zachariah
05 Apr 2005, 17:02
/me installs

buro9
11 Apr 2005, 17:01
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

j_86
11 Apr 2005, 17:03
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!

buro9
11 Apr 2005, 17:08
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.

j_86
11 Apr 2005, 17:22
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..



Code:
---------------
Code is only visible to licensed users, and only when logged into the forums.
---------------



once converted to ascii;



Code:
---------------
Code is only visible to licensed users, and only when logged into the forums.
---------------



[EDIT] - it seems the ascii characters are being pre-processed before being entered into the database/being displayed. It works if you code this and then display it from a HTML web page though - try the attatched file. The source, you see the raw ascii characters. When viewed in a browser, all the characters are rendered.

This "solution", however, is only good if the spiders are only going through the HTML of a web page - I do not know, though.

ChrisLM2001
15 Apr 2005, 01:03
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

buro9
15 Apr 2005, 17:04
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
It shouldn't do... it merely unescape's and document.write's, neither of which would have any problems at all providing javascript is enabled.

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

www.alfisti.net
20 Oct 2005, 20:14
this works also in 3.5
you only have to use /includes/class_bbcode.php (instead the functions_bbcodeparse.php).

thanks buro9 :)

buro9
25 Oct 2005, 19:37
this works also in 3.5
you only have to use /includes/class_bbcode.php (instead the functions_bbcodeparse.php).

thanks buro9 :)

Yup, I'm using it again :) It's small, simple and does what I need it to.

Do people need me to re-publish this as a 3.5 hack to get the warm fuzzies about it?

www.alfisti.net
25 Oct 2005, 19:41
Yup, I'm using it again :) It's small, simple and does what I need it to.

Do people need me to re-publish this as a 3.5 hack to get the warm fuzzies about it?

you should post it in the 3.5 forum with the changes.
I didnīt do that because it is your mod.

jugo
25 Oct 2005, 23:14
http://www.vbulletin.org/forum/showthread.php?t=96195&highlight=email+address

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.

fcherub
24 Nov 2005, 18:40
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

zylstra
24 Mar 2006, 01:18
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?

DjTaz
02 Apr 2006, 18:35
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!


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:
---------------
Code is only visible to licensed users, and only when logged into the forums.
---------------




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.