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?


All times are GMT. The time now is 07:18 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
  • Page Generation 0.01078 seconds
  • Memory Usage 1,740KB
  • 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
  • (1)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)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