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
  #2  
Old 10-03-2014, 11:09 PM
ozzy47's Avatar
ozzy47 ozzy47 is offline
 
Join Date: Jul 2009
Location: USA
Posts: 10,929
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

What is the pro's and cons of using such a thing?
Reply With Quote
  #3  
Old 10-04-2014, 12:13 AM
thetechgenius's Avatar
thetechgenius thetechgenius is offline
 
Join Date: Jun 2014
Posts: 258
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by ozzy47 View Post
What is the pro's and cons of using such a thing?

Webmasters can use this tool to prevent their site from appearing in the server logs of referred pages as referrer. The operators of the referred pages cannot see where their visitors come from any more.

DBSEO does this too, but if you use DBSEO to redirect external links, they wont be 100% anonymized, and you cannot select the domains you dont want to be anonymized.

Anonym.to offers this service for free, but they make you put code in your templates that link to offsite files, such as javascript files. And if you have your site running though SSL/HTTPS, that can be a problem. Users will then get Mixed Content warning when they visit your site, because the javascript files from anonym.to will be served via HTTP not HTTPS. And if Anonym.to goes down or is offline, then your external links will no longer work.

This Mini Mod stores all its files locally on your server to reduce loading times, bandwidth, and most of all it will never go offline, your links will work forever. Its your personal Anonym Link Service.
Reply With Quote
  #4  
Old 10-04-2014, 11:26 AM
gbicar gbicar is offline
 
Join Date: Jul 2012
Posts: 26
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

doesn't work with https links but only with http....
Reply With Quote
  #5  
Old 10-04-2014, 03:14 PM
thetechgenius's Avatar
thetechgenius thetechgenius is offline
 
Join Date: Jun 2014
Posts: 258
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by gbicar View Post
doesn't work with https links but only with http....
I just tested HTTPS links on my board, and your right. I have to go over the Javascript, and see where the problem is. Thank you for bring this to my attention.
Reply With Quote
  #6  
Old 10-04-2014, 03:22 PM
thetechgenius's Avatar
thetechgenius thetechgenius is offline
 
Join Date: Jun 2014
Posts: 258
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by gbicar View Post
doesn't work with https links but only with http....

I found a solution.

Edit js/anon.js:


Find:

Code:
if(a_to_vi.match(a_to_vf[j]) || !a_to_vi || !a_to_vi.match("http://"))

Replace:

Code:
if(a_to_vi.match(a_to_vf[j]) || !a_to_vi || !a_to_vi.match("//"))

I updated the OP with this code edit. Thank you.
Reply With Quote
  #7  
Old 10-04-2014, 06:48 PM
gbicar gbicar is offline
 
Join Date: Jul 2012
Posts: 26
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

now works fine, thanks a lot
Reply With Quote
Благодарность от:
thetechgenius
  #8  
Old 10-04-2014, 06:56 PM
thetechgenius's Avatar
thetechgenius thetechgenius is offline
 
Join Date: Jun 2014
Posts: 258
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by gbicar View Post
now works fine, thanks a lot
Your welcome. I'm glad its working good for you.
Reply With Quote
Благодарность от:
gbicar
  #9  
Old 10-05-2014, 04:25 AM
minhmeo.info minhmeo.info is offline
 
Join Date: Jan 2010
Posts: 8
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

i follow step by step but not work for me
when click url, i wll be redirect to this page, but not redirected to destination url



P/S: i find out that only unregistered member will be redirected to right destination, admin/smod/mod/member only see page like image above.
Reply With Quote
  #10  
Old 10-05-2014, 05:06 AM
thetechgenius's Avatar
thetechgenius thetechgenius is offline
 
Join Date: Jun 2014
Posts: 258
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by minhmeo.info View Post
i follow step by step but not work for me
when click url, i wll be redirect to this page, but not redirected to destination url



P/S: i find out that only unregistered member will be redirected to right destination, admin/smod/mod/member only see page like image above.
I just updated the mod to 1.0.3. This version doesnt need any file edits. Just copy the contents of the upload folder to your forum root and overwrite. Make sure you also put the Javascript code at the bottom of your footer template.

And sorry about that. It should work for you now. However, this mod doesn't have any Usergroup Permissions, so I dont know why some usergroups can see it, and some cannot. If you still have an issue after updating, please let me know and I will try my best to help you. Try clearing your browser cache after you update the mod also, that could be the problem. Or it could be another Mod/Addon is conflicting with this one.
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 06:32 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.12447 seconds
  • Memory Usage 2,341KB
  • Queries Executed 24 (?)
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
  • (5)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
  • (2)pagenav_pagelink
  • (10)post_thanks_box
  • (3)post_thanks_box_bit
  • (10)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (3)post_thanks_postbit
  • (10)post_thanks_postbit_info
  • (9)postbit
  • (2)postbit_attachment
  • (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_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