Go Back   vb.org Archive > vBulletin 3 Discussion > vB3 General Discussions
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools Display Modes
  #1  
Old 06-18-2003, 03:32 PM
mup_cow mup_cow is offline
 
Join Date: Feb 2002
Posts: 9
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default Getting the webmaster's email from a code hack

Hello,

I am writing a custom hack (a separate php file adopted from sendtofriend.php) and I would like to be able to access the Webmaster's email from the "Vbulletin Options" area in the admin cp. What is the variable for this?

Thanks for the tip.

What I am writing is a hack to convert all email addresses posted on the forum into a link to a sendmail form. I am hoping this will avoid those email addresses from being harvested. Currently I simply change the address from

name@domain.com into name @ domain . com do you think this is enough to fool the harvester?
Reply With Quote
  #2  
Old 06-18-2003, 03:44 PM
MUG MUG is offline
 
Join Date: Apr 2002
Posts: 104
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

If you are using global.php, $webmasteremail will be defined.
Quote:
Today at 12:32 PM mup_cow said this in Post #1
name@domain.com into name @ domain . com do you think this is enough to fool the harvester?
Probably not, the harvesters are getting smarter.
Reply With Quote
  #3  
Old 06-18-2003, 03:49 PM
mup_cow mup_cow is offline
 
Join Date: Feb 2002
Posts: 9
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

ok I suppose user at domain dot com has also been included in their algorithm?

Any suggestions? Perhaps just simply "click here to send email" would be a sure fire way but I'd still like to be able to tell people what the real email address is in case if they want to add it to their addr book etc.

What do you think?

I will try webmasteremail thanks so simple when you know it.
Reply With Quote
  #4  
Old 06-18-2003, 04:04 PM
Gary King's Avatar
Gary King Gary King is offline
 
Join Date: Jan 2002
Posts: 2,046
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

How about an input button? I'll post the code in a bit.
Reply With Quote
  #5  
Old 06-18-2003, 04:07 PM
Gary King's Avatar
Gary King Gary King is offline
 
Join Date: Jan 2002
Posts: 2,046
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Use
PHP Code:
<input type="button" value="$emailonClick="parent.location='mailto:$email'"
and replace $email with whatever the email addresses are (the vars for them).
Reply With Quote
  #6  
Old 06-18-2003, 04:15 PM
mup_cow mup_cow is offline
 
Join Date: Feb 2002
Posts: 9
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

wouldn't that get parsed by the harvester too ? They simply search for the email@pattern.com and won't care whether it is in js, html tag or plain text I think
Reply With Quote
  #7  
Old 06-18-2003, 04:31 PM
Gary King's Avatar
Gary King Gary King is offline
 
Join Date: Jan 2002
Posts: 2,046
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Hmm true.
Reply With Quote
  #8  
Old 06-18-2003, 04:40 PM
MUG MUG is offline
 
Join Date: Apr 2002
Posts: 104
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

You can obfuscate the email addresses using JavaScript, I wrote a script to do that a while ago but I can't find it

I think I wrote it before I knew how to use CVS
Reply With Quote
  #9  
Old 06-18-2003, 04:58 PM
MUG MUG is offline
 
Join Date: Apr 2002
Posts: 104
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Wrote it again
PHP Code:
// $Id: obfuscate_emails.php,v 1.4 2003/06/18 17:59:08 alex Exp $

function make_mail_link($title$address) {
  
$address strval($address);
  
$len strlen($address);
  
  
$obfuscated_address '';
  for(
$i 0$i $len$i++) {
    
$obfuscated_address .= '&#' ord($address[$i]) . ';';
  }
  
  return(
'<script language="JavaScript">' .
  
"\n<!--" .
  
"\ndocument.write('<a href=\"ma' + 'il' + 'to' + ':'" .
  
"\n + unescape('" urlencode($obfuscated_address) . "')" .
  
"\n + '\">' + '" htmlentities($title) . "' + '</a>');" .
  
"\n// -->\n</script>"); 

Just use echo make_mail_link('title of link', 'email@address.com');

Example: http://www.macusers.org/email.php
Source: http://www.macusers.org/email.phps

edit: I could make this into a hack that obfuscates all [email] bbcode...
Reply With Quote
  #10  
Old 06-18-2003, 07:55 PM
Gary King's Avatar
Gary King Gary King is offline
 
Join Date: Jan 2002
Posts: 2,046
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I'm sure a lot of people would like that - give it a try!
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 04:01 PM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2024, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.05703 seconds
  • Memory Usage 2,264KB
  • Queries Executed 13 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (1)ad_showthread_firstpost
  • (1)ad_showthread_firstpost_sig
  • (1)ad_showthread_firstpost_start
  • (2)bbcode_php
  • (1)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)navbar
  • (3)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (1)pagenav_pagelink
  • (10)post_thanks_box
  • (10)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (10)post_thanks_postbit_info
  • (10)postbit
  • (10)postbit_onlinestatus
  • (10)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.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/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_postinfo_query
  • fetch_postinfo
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete