Go Back   vb.org Archive > vBulletin Modifications > Archive > vB.org Archives > vBulletin 3.5 > vBulletin 3.5 Add-ons

Reply
 
Thread Tools
Active Link Security Details »»
Active Link Security
Version: 5.2, by Abe1 Abe1 is offline
Developer Last Online: Jun 2010 Show Printable Version Email this Page

Version: 3.5.0 RC2 Rating:
Released: 06-24-2005 Last Update: 08-04-2005 Installs: 32
Uses Plugins
Additional Files  
No support by the author.

I am no longer giving support for this hack. Use this hack: https://vborg.vbsupport.ru/showthread.php?t=95753 instead. You can take my redirector page and use it though.

Thanks to TC from ElAntro.cl for the PHP code.

Active Link Security 5.2


This hack will allow you to have active links on your forum but with security knowing the place were you are linking to wont know were you users came from. IE. If you click on a link in a post on your web site, the web site you go to will not know were you came from.

Time: < 30 seconds

Files to upload: 1


For vb 3.0.x version: https://vborg.vbsupport.ru/showthread.php?t=70684


No screenshots needed. Also, please click ?install? if you use.

Show Your Support

  • This modification may not be copied, reproduced or published elsewhere without author's permission.

Comments
  #32  
Old 08-27-2005, 01:55 AM
Valter Valter is offline
 
Join Date: Aug 2005
Location: Sarajevo
Posts: 2,432
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Hi Abe1

If we have "+" inside url it will be changed to " " (space).

For example if link is:
"http://somesite.com/something+something"
redirection page will show "redirecting to
http://somesite.com/something something"
and usually you'll get "404" error.

Do you know why this is happening?


Thanks
Reply With Quote
  #33  
Old 08-28-2005, 12:18 AM
Abe1's Avatar
Abe1 Abe1 is offline
 
Join Date: Feb 2004
Location: I LOVE New York!
Posts: 2,886
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Cybernetec
Hi Abe1

If we have "+" inside url it will be changed to " " (space).

For example if link is:
"http://somesite.com/something+something"
redirection page will show "redirecting to
http://somesite.com/something something"
and usually you'll get "404" error.

Do you know why this is happening?


Thanks
it doesn't work with spaces. I will try to see what I can do. I never realy tried to work on the hack.
Reply With Quote
  #34  
Old 09-30-2005, 03:39 PM
CMX_CMGSCCC CMX_CMGSCCC is offline
 
Join Date: Sep 2003
Posts: 1,218
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

There's a bug too when you "quick edit" a post, it puts redirector.php inside the URL twice.

-CMX
Reply With Quote
  #35  
Old 10-03-2005, 04:10 AM
RMS-Chef RMS-Chef is offline
 
Join Date: Aug 2003
Location: MA, USA
Posts: 326
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by CMX_CMGSCCC
There's a bug too when you "quick edit" a post, it puts redirector.php inside the URL twice.
-CMX
...and a 3rd, 4th, 5th...adding it again each time you edit.
I have this issue too. Here is what is happening to me.
Currently running RC3.

Created a thread/post with the text http://www.vbulletin.org

*Submit and works fine with the actual parsed link being: http://www.mysite.com/redirector.php....vbulletin.org

*I then click "EDIT" and add some new text "Edit 1" and click save. Oddly enough, the parsed link is still OK and linking to:
http://www.mysite.com/redirector.php....vbulletin.org

*Click EDIT again and add some more text, "Edit 2" and click save. Now the parsed link is linking to:
http://www.mysite.com/redirector.php....vbulletin.org

*Click EDIT again, add "Edit 3" and click save. Now linking to:
http://www.mysite.com/redirector.php....vbulletin.org

So after the second edit it is adding the extra stuff again and again on each new edit. This also happens the same exact way when I click EDIT, then immediately click GO ADVANCED.

EDIT:
This is not a Quick Edit bug.
This issue seems to be related to the WYSIWYG editor only.
I don't have the above issues if I change to Standard or Basic editors.
Reply With Quote
  #36  
Old 10-03-2005, 10:27 AM
havefun's Avatar
havefun havefun is offline
 
Join Date: Jan 2002
Location: Spain & Austria
Posts: 83
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

i use it with vb code:
(so i only needed redirector.php) THX

tag: ano
code: <div class="smallfont" style="color: red;">Anonymer Link:</div><a title="Anonymer Link" href="http://www.YourUrl.de/redirector.php?url=http://{param}" target="_blank">{param}</a>
{option}: no

example: [ano]www.vbulletin.org[/ano]

=:
Externer Link:
www.vbulletin.org

i modified redirector.php for me (xhtml..):
PHP Code:
<?
foreach ($_GET as $key => $value) {
    $site .= $key."=".$value."&";
}
$site = substr($site, 4, -1);
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html>
<head>
<title>Re-directing...</title>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1" />
<meta http-equiv="refresh" content="0; URL=<? echo $site; ?>" />

</head>
<body>

<table cellpadding="0" cellspacing="0" border="0" width="70%" align="center">
<tr>
    <td align="center">
    <div>
        <blockquote>
            <p>&nbsp;</p>
            <p><strong>You are being re-directed to:</strong></p>
            <p><b><i> <? echo $site; ?></i></b></p>
            <div>&nbsp;</div>
        </blockquote>
            
    </div>
    </td>
</tr>
</table>

</body>
</html>
Reply With Quote
  #37  
Old 10-04-2005, 08:10 PM
jugo jugo is offline
 
Join Date: Feb 2004
Location: Reading your emails.
Posts: 573
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Catlover
Hi, Abe1. I want to ask you to make if you have any chance and time something with this nice product.
For example, if we post link like a anotherdomain.com, vbulletin generates link like a http://forumdomain.com/redirect.php?query=http://anotherdomain.com - That's right, very good, but if you have any ideas how to make something like this: I post link on forumdomain.com and vbulletin don't convert it into redirect.php?query..., so, i can post links on forum's threads without redirect script.

Thank you in advance.
Quote:
Originally Posted by Abe1
Sorry, no way right now.

I fixed mine....

in your plugin manager find:

Active Link Security Hack in bbcode_parse_complete

then replace:

Code:
$text = str_replace('href="http', 'href="redirector.php?url=http', $text);
$parsedtext = str_replace('href="http', 'href="redirector.php?url=http', $parsedtext);
with:

Code:
if (!eregi('yourdomain.com', $text)) {
$text = str_replace('href="http', 'href="redirector.php?url=http', $text);
}
if (!eregi('yourdomain.com', $parsedtext)) {
$parsedtext = str_replace('href="http', 'href="redirector.php?url=http', $parsedtext);
}
SAVE IT

then find:

in your plugin manager find:

Active Link Security Hack in bbcode_parse_start

then replace:

Code:
$parsedtext = str_replace('href="http', 'href="redirector.php?url=http', $parsedtext);
with:

Code:
if (!eregi('yourdomain.com', $parsedtext)) {
$parsedtext = str_replace('href="http', 'href="redirector.php?url=http', $parsedtext);
}
SAVE IT

Done....I tested this and it works...except if the post contains a link in your site...because once it finds your domain name in the post or parsed text it will not run the plugin....sooooooooooooo if anyone can figure that part out...it would be hella cool.

But this worked for me at www.ejuan.com so i figured, i'd share.
Reply With Quote
  #38  
Old 10-05-2005, 10:56 AM
JohnBee JohnBee is offline
 
Join Date: Oct 2004
Posts: 544
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

same trouble here. Links don't resolve properly. "uninstall" sigh...
Reply With Quote
  #39  
Old 10-05-2005, 12:21 PM
Catlover Catlover is offline
 
Join Date: Jul 2005
Posts: 7
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Jugo, thank you. I have already resolve this trouble.
Reply With Quote
  #40  
Old 10-05-2005, 04:34 PM
RMS-Chef RMS-Chef is offline
 
Join Date: Aug 2003
Location: MA, USA
Posts: 326
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by JohnBee
same trouble here. Links don't resolve properly. "uninstall" sigh...
They will if you disable Enhanced WYSIWYG controls.
Right now it's a toss up until Abe or someone else can fix the issue.

Also, this works well with EI and FF by default browser settings but Opera has an option like "Log Referers" that is enabled by default that still passes on referer information.
Reply With Quote
  #41  
Old 10-05-2005, 05:40 PM
CMX_CMGSCCC CMX_CMGSCCC is offline
 
Join Date: Sep 2003
Posts: 1,218
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Here's what I'm testing on my forums right now and it seems to be ok with Editing the post with the WYSIWYG controls.

hook: bbcode_parse_start

Code:
$URLSearch = array("/href\=\"http:\/\/redirector.php\?url\=([a-zA-Z0-9\.\/\=\?\,\&\:\;]*)\"/", "/href\=\"(http:\/\/[a-zA-Z0-9\.\/\=\?\,\&\:\;]*)\"/");
$URLReplace = array("href=\"redirector.php?url=$1\"", "href=\"redirector.php?url=$1\"");
$parsedtext = preg_replace($URLSearch, $URLReplace, $parsedtext);
hook: bbcode_parse_complete

Code:
$URLSearch = array("/href\=\"http:\/\/redirector.php\?url\=([a-zA-Z0-9\.\/\=\?\,\&\:\;]*)\"/", "/href\=\"(http:\/\/[a-zA-Z0-9\.\/\=\?\,\&\:\;]*)\"/");
$URLReplace = array("href=\"redirector.php?url=$1\"", "href=\"redirector.php?url=$1\"");
$text = preg_replace($URLSearch, $URLReplace, $text);
$parsedtext = preg_replace($URLSearch, $URLReplace, $parsedtext);
It should cover url's with characters ./,/=&;:?

If you need more characters, just add them to the $URLSearch = line somewhere inside the [a-zA-Z part of the regular expression, probably after one of the \= for example.

-CMX
Reply With Quote
Reply

Thread Tools

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 03:22 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.04863 seconds
  • Memory Usage 2,320KB
  • Queries Executed 25 (?)
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
  • (6)bbcode_code
  • (1)bbcode_php
  • (5)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (6)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (3)pagenav_pagelink
  • (11)post_thanks_box
  • (11)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (11)post_thanks_postbit_info
  • (10)postbit
  • (11)postbit_onlinestatus
  • (11)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_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