vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.5 Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=113)
-   -   EMail Address Obfuscator v1.0.2 (https://vborg.vbsupport.ru/showthread.php?t=97704)

El_Muerte 10-05-2005 10:00 PM

EMail Address Obfuscator v1.0.2
 
This will obfuscate email addresses in posts in order to prevent email harvesting. There are a couple of methods available:
  • Image; the email will be displayed as an image, works quite well but not very user friendly.
  • HTML Entities; every character in the email address will be replaced with it's html entity. This is not a great method, but it stops stupid harvestors.
  • Javascript; the link will be written via javascript, works quite well and makes the link invisible for harvestors. But requires javascript to be enabled
  • Custom; roll-your-own algorithm, can be easily set in the vbulletin options in the admincp

This plugin also partially strips the email addresses in the archive (the domain name is removed).

Update 1.0.1
* [fixed] wysiwyg code isn't screwed up anymore
* [added] added support to select the font to use (builtin fonts, GD bitmap fonts or TTF fonts)

Update 1.0.2
* [fixed] fatal error when rebuilding postcache
* [fixed] invalid hash when quickposting\editing via AJAX
* [changed] the image tags now use the CSS class "inlineimg" that aligns them vertical center

TygerTyger 10-06-2005 09:00 AM

Great stuff, works fine using image conversion. Thank you! You might want to mention that the options panel can be found under vBulletin options ;)

trancetopia 10-06-2005 12:13 PM

Thanks, this is great. Clicks install.

nexialys 10-06-2005 12:47 PM

this is just great... and can be enhanced by using the image setting for the $vbulletin->options['imagetype'] and the font related to it... $vbulletin->options['gdfont'] or $vbulletin->options['magickfont']....

;)

ZeroSixty 10-06-2005 12:54 PM

Nice! Thankyou :)

mcyates 10-06-2005 01:04 PM

thanks, this works a treat. Great hack, ** Clicks Install **

Mephisteus 10-06-2005 07:56 PM

Pretty good idea and solution :) I dont have much of a need for it myself but when an email adres is posted I would like it to be 'safe' from harvesters :)

A few notes though (by far the bigger part of this post, dont take it wrong though :p)

It also changes the output on the editing of a post. In WYSIWYG this means that (atleast with javascript) you cant see the email adress :p

And is this proper? On HTMl entities it outputs it like this <a href="mailto:%blablabla">adres@bla.com</a> and on javascript (which I admittedly dont know much about, nor do I know about the way harvesters work) it puts in a undisclose followed by a full email link like normal (honestly wondering about how that works :))

Heres something that should prove very very proper (if possible to put it with a automated fashion).
<script type='text/javascript'>var a = new Array('s','t','a','r.','o');document.write("<a href='o:"+a[1]+a[0]+a[2]+a[3]+a[4]+"'>"+a[1]+a[0]+a[2]+a[3]+a[4]+"</a>");</script>

This format for an email adress (made this one manually). Any chance of doing it like that? It replaces both the mailto/link and hussles it all up in output making it look (even if it does go past the codes) like random blabber.

El_Muerte 10-06-2005 08:11 PM

hmm, I never use the wysiwyg editor, so that might be a bug.

as for the output, what you see it not what the browser actually received. For example firefox\mozilla displays the evaluated html when you view the selected source. Use the "view page source" to see the actual code.

With HTML entities the actual HTML code is
HTML Code:

<a href="mailto:%74%65%73%74%40%65%6d%61%69%6c%2e%63%6f%6d">&#x74;&#x65;&#x73;&#x74;&#x40;&#x65;&#x6d;&#x61;&#x69;&#x6c;&#x2e;&#x63;&#x6f;&#x6d;</a>
and with Javascript it;s
HTML Code:

<script type="text/javascript">document.write(unescape('%3c%61%20%68%72%65%66%3d%27%6d%61%69%6c%74%6f%3a%74%65%73%74%40%65%6d%61%69%6c%2e%63%6f%6d%27%3e%74%65%73%74%40%65%6d%61%69%6c%2e%63%6f%6d%3c%2f%61%3e'));</script>

one9er 10-06-2005 08:45 PM

Thank's El_Muerte! Works great.

Lea Verou 10-07-2005 01:10 AM

Quote:

Originally Posted by one9er
Thank's El_Muerte! Works great.

Am I able to change the colors of the image created?

El_Muerte 10-07-2005 06:18 AM

no you can't, at least not yet, currently it uses the colors from the currently selected style

Lea Verou 10-07-2005 06:20 AM

Quote:

Originally Posted by El_Muerte
no you can't, at least not yet, currently it uses the colors from the currently selected style

Oh, that's what I meant! :)

[high]* Lea Verou clicks install :)[/high]

trancetopia 10-07-2005 07:56 AM

I like the update, thanks :)

For my personal preference, I didn't like the alignment of the image against the text of the message. I made the following modification so the image is aligned with the middle of the text instead of the bottom.

The Change:

PHP Code:

$res .= "<img src=\"?emailimage=".$hash."\" alt=\"[email address]\" />"

to:

PHP Code:

$res .= "<img src=\"?emailimage=".$hash."\" alt=\"[email address]\" align=\"absmiddle\" />"

This looks better when using font size 3 with my current style. Someone else may find this useful.

ke5crz 10-07-2005 07:40 PM

I get the following error when i try to rebuld my cache

Fatal error: Call to undefined function: convertemailaddress() in /home/hamplex/public_html/includes/class_bbcode.php(377) : eval()'d code(11) : regexp code on line 1

El_Muerte 10-07-2005 09:31 PM

hmm... looks like the cache rebuild thing never calls the global_start hook

this is kinda annoying, isn't there a super global start hook?

Fat Burger 10-08-2005 12:54 AM

I installed it and got an "invalid hash" message, instead of the email address being converted. Any idea?

Vtec44 10-08-2005 01:29 AM

It's working fine for vB3.5 RC3 :D

utw-Mephisto 10-08-2005 01:37 AM

Just installed on 3.5 gold - worki perfect

http://www.ut2007world.com/forum/showthread.php?t=689

@El_Muerte : UnrealScript wasn't challenging enough - now also vb hacking :D :D :D

Mr Chad 10-08-2005 02:57 AM

a well needed mod.

El_Muerte 10-08-2005 08:27 AM

Quote:

Originally Posted by Fat Burger
I installed it and got an "invalid hash" message, instead of the email address being converted. Any idea?

the email address (for the images) are stored in the database and the hash in the url is just it's identifier, it could happen that the image is requested before the hash table is stored in the database (I guess). I may have to change the way the hashes are stored in the database.
What browser are you using?

Quote:

Originally Posted by utw-Mephisto
@El_Muerte : UnrealScript wasn't challenging enough - now also vb hacking

Not really, I have my own vbulletin forum and also manage the one at UnrealAdmin.org . Some of the hacks I made I already put in via the old file hacking way, but this plugin stuff is great and also allows me to easily share it with others.

Funchiestz 10-08-2005 08:47 AM

Quote:

Originally Posted by El_Muerte
or the images) are stored in the database

same as me.. it showing invalid hash T_T

Yorixz 10-08-2005 09:17 AM

Thanks, installing this soon.

edit;
Installed it and it's working great, thanks a lot!

wolfyman 10-08-2005 02:58 PM

hmmm.. using firefox. It gave me invalid hash after posting an email address. I checked it in IE and it worked fine, then I refreshed my firefoxpage and it showed correctly.

Awesome hack and I am using it, but I would like to know when it is upgraded.

*clicks install*

El_Muerte 10-08-2005 04:16 PM

does this only happen when using quick reply? or also when using the normal reply form?

wolfyman 10-08-2005 05:20 PM

It happens the same for each instance.

It only seems to affect the posters browser though - I tried it both ways, and got "invalid hash"

Then I refreshed the page and it showed correctly on both instances. So, I posted again to recieve the invalid hash. I then opened the thread in a different browser and it looked fine.

So, other than the occasional PM wondering why that happened from the one user who will see "invalid hash" rather than the actual email image prior to refreshing the page - I don't see a problem.

El_Muerte 10-08-2005 05:23 PM

it should be fixed now, the AJAX stuff caused the browser to receive the HTML code before the hash was saved to the database

wolfyman 10-08-2005 05:24 PM

Yep, I just tried it and it's all good. Thanks man!

Fat Burger 10-08-2005 05:51 PM

Yeah, I was using Firefox too, sorry I didn't get back to you.

Thanks for the fix, this is a great plugin!

Gilby 10-08-2005 08:59 PM

Installed 1.0.2 and tried to create a new thread (which did have subject and message longer than 10 chars) and I got this error:
The following errors occurred when this message was submitted:

1. Please complete both the subject and message fields.
2. The message you have entered is too short. Please lengthen your message to at least 10 characters.
I'm guessing the regex is striping everything out of those variables.

El_Muerte 10-10-2005 07:39 AM

couldn't reproduce that error
the rewriting of the email address is done when the vbcode parsing is completed and as far as I can tell the length it checked before the vbcode is parsed.

one9er 10-10-2005 10:44 AM

Thank's El_Muerte for the up-dates!

hotrod1 10-10-2005 02:35 PM

Great hack, thanks!

Jagged Tooth 10-22-2005 03:23 AM

I just installed it, works great. Great work

RS_Jelle 10-22-2005 03:47 PM

When you install DC Seo vB URL Rewrite, it doesn't work.
Maybe you could make a version for use with the DC Seo vB URL Rewrite mod too? :)

El_Muerte 10-23-2005 05:55 PM

Quote:

Originally Posted by RS_Jelle
When you install DC Seo vB URL Rewrite, it doesn't work.
Maybe you could make a version for use with the DC Seo vB URL Rewrite mod too? :)

You mean the image doesn't work?
That would be odd actually since afaik the image isn't rewritten by the DC SEO mod.

phvt 11-18-2005 01:58 PM

Installed it, works great, thank you!

Feature suggestions:

- option to keep everything unmunged for specified usergroupids

- option to have a <noscript> section (applicable when Javascript is the method) to display text such as "user@<hidden>".

- option to look for and munge other email addresses, e.g.
<address@tld>
[address@tld]
mailto:address@tld

These don't get parsed by vBulletin but they're certainly harvestable.

AWI 12-09-2005 08:14 AM

Installed on 3.5.2 and seems to work fine. How would I make a custom algorithm?

Smiry Kin's 12-17-2005 12:37 PM

Quote:

Originally Posted by AWI
Installed on 3.5.2 and seems to work fine. How would I make a custom algorithm?

i installed it on 3.5.2 doesnt work.. :( says Detected GD

thisgeek 12-20-2005 03:25 AM

Works like a charm on my 3.5.2. Thanks.

Capt PPRuNe 01-07-2006 10:39 PM

Installed and works in 3.5.3 but when using Image, the automatic link isn't active. Usres will have to manually type in the email address to their email prog. Is the image supposed to be an active link?


All times are GMT. The time now is 03:01 AM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01349 seconds
  • Memory Usage 1,820KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (2)bbcode_html_printable
  • (2)bbcode_php_printable
  • (7)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (1)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (40)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete