vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.0 Full Releases (https://vborg.vbsupport.ru/forumdisplay.php?f=33)
-   -   Active Link Security 4.0 (https://vborg.vbsupport.ru/showthread.php?t=70684)

Abe1 10-16-2004 10:00 PM

Active Link Security 4.0
 
Thanks to TC from ElAntro.cl for the PHP code.

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 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: 1 minute

Files to edit: 1
Files to upload: 1

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

twoseven 10-17-2004 02:08 PM

oh so this turns our forum into the blind redirector nice

Carter876 10-17-2004 02:15 PM

I used your Active Link Security 3.0 but this is better because it doesn't use any site :)

* Click Install

Regards

Abe1 10-17-2004 02:27 PM

Quote:

Originally Posted by Carter876
I used your Active Link Security 3.0 but this is better because it doesn't use any site :)

* Click Install

Regards

Right. That is why I even started a new thread.

djohn 10-17-2004 03:23 PM

installed.

suggestions: replace return return
HTML Code:

"<a href=\"http://www.yourwebsite.com/links.php?url=$rightlink\" target=\"_blank\">$text</a>";
with
HTML Code:

"<a href=\"$vboptions[bburl]/links.php?url=$rightlink\" target=\"_blank\">$text</a>";
for future versions: per-forums setting, whether to use this hack or not.

thanks

twoseven 10-17-2004 03:31 PM

i dont know if this was ever covered but is there a way to not redirect same site links?

Lionel 10-17-2004 05:31 PM

I changed the content to "20" in links.php so I could test it, but it goes straight to other site...

edit:... never mind it works, but with new links only.

dndog 10-17-2004 05:36 PM

Are there any practical reasons for this?

It sounds good, but I don't know why anyone would want to do this.

Abe1 10-17-2004 06:03 PM

Quote:

Originally Posted by twoseven
i dont know if this was ever covered but is there a way to not redirect same site links?

Yes. Make sure your users know about the [thread] and [post] BB codes.

Abe1 10-17-2004 06:05 PM

Quote:

Originally Posted by dndog
Are there any practical reasons for this?

It sounds good, but I don't know why anyone would want to do this.

Many reasons. Read though 'Active Link Security 3.0' for many reasons people posted.

theArchitect 10-18-2004 02:08 AM

*theArchitect clicks install and is most impressed with Abe's work.*

Thankyou for sharing this with us.

msimplay 10-18-2004 09:38 AM

Fantastic i needed one of these excellent idea :D

TCattitude 10-18-2004 11:12 AM

Nice :)

Polo 10-18-2004 12:12 PM

Nice hack, thanks for sharing ;)

azmi 10-18-2004 01:46 PM

our related link is with an infoframe:
http://redirect.koelnboard.de/redire...p://google.com

i saw it @giga and i think it works very well ;-)

text on the left:
the koelnboard is not responsible for the content
text on the right:
close infoframe

Polo 10-18-2004 02:28 PM

mmm... your site is currently down azmi :ermm:

azmi 10-18-2004 07:57 PM

:ermm: its Murphys law

he was down for half an hour.
at the same time you was looking for.

Polo 10-18-2004 09:33 PM

Oh I see....

Ber|Art 10-19-2004 12:05 PM

Wow, works perfectly, very nice hack THX! :)

C_P 10-20-2004 04:53 PM

Anyone else having this isssue?
After installing this mod, the prior urls link fine. BUT, if you go to add one or modify one, the link takes you to this yourwebsite url?
Example, I did a hyperlink url
[url = http://www.pcworld.com/news ] News Source [ / url] *Without spaces to show what I did*
And mine goes here now......
http://www.yourwebsite.com/links.php?url=http://www.pcworld.com/news

Help?

You can see this by going here
Not Working
and if you select another "prior to hack" post, it works as in this example here:
Working

azmi 10-20-2004 05:39 PM

the "http://www.yourwebsite.com/links.php"
is only an example and cannot work correkt.

http://anonym.to

is such an redirect url!

Abe1 10-20-2004 05:46 PM

Quote:

Originally Posted by C_P
Anyone else having this isssue?
After installing this mod, the prior urls link fine. BUT, if you go to add one or modify one, the link takes you to this yourwebsite url?
Example, I did a hyperlink url
[url = http://www.pcworld.com/news ] News Source [ / url] *Without spaces to show what I did*
And mine goes here now......
http://www.yourwebsite.com/links.php?url=http://www.pcworld.com/news

Help?

You can see this by going here
Not Working
and if you select another "prior to hack" post, it works as in this example here:
Working

You must change www.yourwebsite.com to your web sites address like: www.cpfools.com/forum/

C_P 10-20-2004 06:05 PM

Quote:

Originally Posted by Abe1
You must change www.yourwebsite.com to your web sites address like: www.cpfools.com/forum/

Worked like a charm!
Thanks!

Abe1 10-20-2004 06:15 PM

Quote:

Originally Posted by C_P
Worked like a charm!
Thanks!

Now, make sure you click install.

C_P 10-20-2004 06:19 PM

* Clicks Install

* forget how to do that using a me tag, but I clicked install. Thanks

bonnmac 10-21-2004 01:13 AM

ok is this right when i click on a link from my site i see for a split second redirecting to the actual url dose this mean its working right??

Abe1 10-21-2004 12:09 PM

Quote:

Originally Posted by bonnmac
ok is this right when i click on a link from my site i see for a split second redirecting to the actual url dose this mean its working right??

Please click 'install' to get help.

Anyway, yes. That it was suppose to happen. Also, some web sites take longer to go to then others.

korg 10-22-2004 10:22 PM

very nice upgrade, good work. Thanks a lot man.

The Realist 10-24-2004 01:54 PM

Thanks M8, works great :)

djohn 10-24-2004 02:35 PM

how can i make the script exclude site-wide links? for example, i would not like to open a redirection popup, if the link is to another topic or part of my site.

Abe1 10-24-2004 02:41 PM

Quote:

Originally Posted by djohn
how can i make the script exclude site-wide links? for example, i would not like to open a redirection popup, if the link is to another topic or part of my site.

Tell your users to use the [thread] and [post] BB codes.

turkforum 10-27-2004 04:06 AM

great hack installed and saved a bunch of money on my car insurance

Mone' 11-02-2004 09:14 PM

Ae1 , great hack work almost perfectly for normal url
however if you have url like this one:

Code:

http://support.microsoft.com/default.aspx?scid=kb;en-us;832790
the links.php will redirect to:

Code:

http://support.microsoft.com/default.aspx?scid=kb
cutting the ";en-us;832790" part at the end of the url.

the weird thing it's that it work perfectly in firefox but my user get's the problem with IE6 sp2 with links like the above example.

Do you know how to fix it ?

thank you

Mone'

pco 11-04-2004 02:30 AM

Hi,

you can use javascript to redirect instead of the meta-tag.

In links.php instead of

Code:

<META HTTP-EQUIV="refresh" content="0; URL=<? echo $site; ?>"></HEAD>
use this

Code:

<script type="text/javascript">window.location.href="<? echo $site; ?>"</script></HEAD>
You'll still have the title "Redirecting..." (just use the global phrase $vbphrase['redirecting'] instead no hardcoding for compatibilty with other languages) but it will redirect you right away even better and faster than the meta tag, no "extra info page" either :) Tested with internet explorer 5.5 and 6.0, no "cut offs" :D :D



Quote:

Originally Posted by djohn
how can i make the script exclude site-wide links? for example, i would not like to open a redirection popup, if the link is to another topic or part of my site.

In functions_bbcodeparse.php first change this:

Code:

function handle_bbcode_url($text, $link, $type = 'url')
{
        global $wysiwygparse;

to this:

Code:

function handle_bbcode_url($text, $link, $type = 'url')
{
        global $wysiwygparse, $vboptions;

in order to have access to vboptions first. Now again at around line 1480 or so use this:

Code:


        if ($type == 'url')
        {
                // standard URL hyperlink
                $lenbburl=strlen($vboptions['bburl']);
                if ( substr($vboptions['bburl'],0,$lenbburl) == substr($rightlink,0,$lenbburl) ) {
                        return "<a href=\"$rightlink\" target=\"_blank\">$text</a>";
                } else {
                        return "<a href=\"" . $vboptions['bburl'] . "/links.php?url=$rightlink\" target=\"_blank\">$text</a>";
                }
               
        }
        else

Good luck :)

teamgofast 11-27-2004 11:45 PM

install, great hack thank you!

H2k 12-28-2004 11:47 PM

Quote:

Originally Posted by azmi
our related link is with an infoframe:
http://redirect.koelnboard.de/redire...p://google.com

i saw it @giga and i think it works very well ;-)

text on the left:
the koelnboard is not responsible for the content
text on the right:
close infoframe

can we use anther url like said thati dont need to usemy url i need to use google.. so if TheUser enter forumssiteother.com and the forumssiteother.com check his log or state to find where poeple come from etc.. it will show from google if they was enter from my site.?

aranthorn 01-17-2005 03:52 PM

Just the ticket!

Sin City 01-22-2005 06:03 AM

great hack :)

Bubble #5 05-11-2005 04:15 PM

Quote:

Originally Posted by djohn
suggestions: replace return return
HTML Code:

"<a href=\"http://www.yourwebsite.com/links.php?url=$rightlink\" target=\"_blank\">$text</a>";
with
HTML Code:

"<a href=\"$vboptions[bburl]/links.php?url=$rightlink\" target=\"_blank\">$text</a>";
for future versions: per-forums setting, whether to use this hack or not.

Are we supposed to make this modification? What is it's benifit?

Abe1 05-11-2005 04:28 PM

Quote:

Originally Posted by Bubble #5
Are we supposed to make this modification? What is it's benifit?

Up to you.


All times are GMT. The time now is 11:27 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.01294 seconds
  • Memory Usage 1,826KB
  • 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
  • (7)bbcode_code_printable
  • (4)bbcode_html_printable
  • (12)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