Go Back   vb.org Archive > vBulletin Modifications > vBulletin 4.x Modifications > vBulletin 4.x Add-ons
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools
Redirect all External Links anonymously - Locally Hosted (Updated) Details »»
Redirect all External Links anonymously - Locally Hosted (Updated)
Version: 1.0.3, by thetechgenius thetechgenius is offline
Developer Last Online: Dec 2017 Show Printable Version Email this Page

Category: Mini Mods - Version: 4.2.2 Rating:
Released: 10-02-2014 Last Update: 09-14-2017 Installs: 21
Template Edits
Re-useable Code Additional Files Translations Is in Beta Stage  
No support by the author.

I have just created a custom URL Anonymizer for vBulletin (or any web site).


All files are hosted locally on your server, including the JS files. This is something like how anonym.to redirects their links. But these files are hosted on your server, so you can use HTTPS, or use it on any site you want. And its open-source, my very own code.


Anonymized Links will show like this: http://yoursite.com/redirect/?to=htt...ternalsite.com



Lets get started.

1) First, put this at the Bottom of your footer template:

Code:
<script src="js/anon.js" type="text/javascript"></script>

<script type="text/javascript"><!--
protected_links = "javascript://,yoursite.com";

auto_anonymize();
//--></script>
Change yoursite.com to your actual domain name. You can also add URL's that you don't want to be Anonymized. Separate the URL's with commas. Or you could remove all of the protected sites, and have ALL links use the Anonym Redirect System.

Note: Make sure you keep javascript:// in with the protected links, so the addon doesn't break any of your other javascript functions. I will find a way to include this in the actual JS file, so you dont need to keep it in with your protected links, but for now this is an easy fix. (I am really busy at the moment)



2) Download the zip file at the end of this post, and extract the contents on your PC.

3) Upload the contents of the "upload" folder, to your forum root.

Done!


Let me know what you think. You can also use this script on a different site, such as a custom short URL, and link your Anonymized URLS to the short URL. If you have any questions, please post here, PM, Or contact me on my site: https://thetechgenius.net.

--------------------------------------------------------------------------------

Update 1.0.2

Fixed
- HTTPS links was not being anonymized

Update 1.0.3
Changed - No need to edit files anymore. Add the javascript code and upload the files to your forum root. Instead of the files linking to your domain (yourdomain.com/redirect/index.php), they will link to the mod directory (redirect/index.php). SO there is no need for any file edits, besides adding the Javascript to your footer template.

--------------------------------------------------------------------------------



Update v2.0


Ok guys/girls, I have finally re-coded the entire script. And its working really well.

However, I have made it into its very own standalone script that can work completely by itself.

But, you can use some javascript to link to your forum, and have all external links use the service, and have the ANON domain put in front of all external links.

I will be updating the main post with all the information needed. But for now, you can check it out on my Git Site.

Source/Release - https://code.thetechgenius.net/TheTe...-Anonymous-URL

Note: I have my own Git Site. My Git site is running on the GOGS Git Software script. Please know, the ZIP at the bottom is NOT the standalone or updated version. I am working on setting up the file structure so its easier to install for everyone.

Download Now

File Type: zip [TTG]External Link Anonymizer.1.0.3.zip (2.4 KB, 35 views)

Screenshots

File Type: jpg anonym.jpg (68.5 KB, 0 views)

Show Your Support

  • This modification may not be copied, reproduced or published elsewhere without author's permission.
Благодарность от:
davidg

Comments
  #22  
Old 10-08-2014, 02:30 AM
elfenny's Avatar
elfenny elfenny is offline
 
Join Date: May 2012
Posts: 103
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

There is a problem with the full script of linkbucks
Reply With Quote
  #23  
Old 10-08-2014, 02:55 AM
thetechgenius's Avatar
thetechgenius thetechgenius is offline
 
Join Date: Jun 2014
Posts: 258
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by elfenny View Post
There is a problem with the full script of linkbucks
Is this mod conflicting with LinkBucks URL's?

If so, just add "www.linkbucks.com" to the Protected Links.

So your protected links will look something like this in your footer template:

Code:
<script src="js/anon.js" type="text/javascript"></script>

<script type="text/javascript"><!--
protected_links = "yoursite.com,javascript://,www.linkbucks.com";

auto_anonymize();
//--></script>
Reply With Quote
  #24  
Old 10-08-2014, 03:28 AM
elfenny's Avatar
elfenny elfenny is offline
 
Join Date: May 2012
Posts: 103
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by thetechgenius View Post
Is this mod conflicting with LinkBucks URL's?

If so, just add "www.linkbucks.com" to the Protected Links.

So your protected links will look something like this in your footer template:

Code:
<script src="js/anon.js" type="text/javascript"></script>

<script type="text/javascript"><!--
protected_links = "yoursite.com,javascript://,www.linkbucks.com";

auto_anonymize();
//--></script>
do not want to protect linkbucks url, I want to continue running the full script of linkbucks.

Chain links so far ... Link in Forum > linkbucks > Download page

With the plugin is so ... Link in Forum > Anonymizer > Download page (linkbucks disappear)

What I want ... Link in Forum> Anonymizer > Linkbucks > Download page
Reply With Quote
  #25  
Old 10-08-2014, 05:07 AM
thetechgenius's Avatar
thetechgenius thetechgenius is offline
 
Join Date: Jun 2014
Posts: 258
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by elfenny View Post
do not want to protect linkbucks url, I want to continue running the full script of linkbucks.

Chain links so far ... Link in Forum > linkbucks > Download page

With the plugin is so ... Link in Forum > Anonymizer > Download page (linkbucks disappear)

What I want ... Link in Forum> Anonymizer > Linkbucks > Download page
I'm not sure if thats possible. But I will look into it for you.

It may be possible to embed the linkbucks content on the Anonymizer redirect page. However, I'm not sure, I will have to look into it.

Now that I think about it though, I think the Anonymizer Javascript may be conflicting with your Linkbucks Javascript. Does your Linkbucks mod use javascript to put a linkbucks url in front of URLs? Or do you do it manually?

Sorry, I am half asleep, so its a bit hard to concentrate at the moment. lol
Reply With Quote
  #26  
Old 10-08-2014, 01:24 PM
elfenny's Avatar
elfenny elfenny is offline
 
Join Date: May 2012
Posts: 103
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by thetechgenius View Post
I'm not sure if thats possible. But I will look into it for you.

It may be possible to embed the linkbucks content on the Anonymizer redirect page. However, I'm not sure, I will have to look into it.

Now that I think about it though, I think the Anonymizer Javascript may be conflicting with your Linkbucks Javascript. Does your Linkbucks mod use javascript to put a linkbucks url in front of URLs? Or do you do it manually?

Sorry, I am half asleep, so its a bit hard to concentrate at the moment. lol
I also believe that there is a conflict between Anonymizer and linkbucks script. causes it to fail linksbuck

The script automatically sends linkbucks advertising links but I can protect (like Anonymizer) to no effect. Example: Mysite.com, Facebook.com, youtube.com, etc.
Reply With Quote
  #27  
Old 10-10-2014, 09:47 PM
elfenny's Avatar
elfenny elfenny is offline
 
Join Date: May 2012
Posts: 103
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

no answer?
Reply With Quote
  #28  
Old 10-10-2014, 09:54 PM
ozzy47's Avatar
ozzy47 ozzy47 is offline
 
Join Date: Jul 2009
Location: USA
Posts: 10,929
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Patience, remember this mod is distributed freely, people have lives other than here.
Reply With Quote
  #29  
Old 10-11-2014, 11:10 AM
mitch84 mitch84 is offline
 
Join Date: Mar 2008
Location: france
Posts: 516
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

thank you, work fine on vb4.2.0 Patch Level 4
Reply With Quote
  #30  
Old 10-16-2014, 01:35 PM
angeljs's Avatar
angeljs angeljs is offline
 
Join Date: Aug 2005
Location: UK
Posts: 384
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I can't get this to work at all, I'm afraid. I keep getting the same problem as in this post:
https://vborg.vbsupport.ru/showpost....7&postcount=10
Reply With Quote
  #31  
Old 11-04-2014, 12:25 AM
thetechgenius's Avatar
thetechgenius thetechgenius is offline
 
Join Date: Jun 2014
Posts: 258
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Sorry for the wait everyone. I have just been really busy. But in my free time I have been working on this Mod/Addon, and I have fixed a lot of of the code, and some parts are completely rewritten. I still have to test it out on my live board for a few days, maybe a week or two just to be on the safe side.

The next update will also include a way to set it up on another domain or subdomain. This is how I have it setup on my site right now:

https://thetechgenius.net - My Site where vBulletin is installed

https://link.thetechgenius.net - This is the domain that the External Links get linked to via the Addon.

So all external links that are not on the white list, will show like this: https://link.thetechgenius.net/?http://vbulletin.org

You can actually click that link to see how it loads, and to test it out. You can also try it with your own link. Just put your link after the "?" (question mark).

Example: https://link.thetechgenius.net/?http://yourlink.com


Please let me know what you think.
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 10:07 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.04779 seconds
  • Memory Usage 2,348KB
  • Queries Executed 26 (?)
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
  • (3)bbcode_code
  • (4)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (4)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (11)post_thanks_box
  • (1)post_thanks_box_bit
  • (11)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (1)post_thanks_postbit
  • (11)post_thanks_postbit_info
  • (10)postbit
  • (2)postbit_attachment
  • (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
  • fetch_musername
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • post_thanks_function_fetch_thanks_bit_start
  • post_thanks_function_show_thanks_date_start
  • post_thanks_function_show_thanks_date_end
  • post_thanks_function_fetch_thanks_bit_end
  • post_thanks_function_fetch_post_thanks_template_start
  • post_thanks_function_fetch_post_thanks_template_end
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_attachment
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete