Go Back   vb.org Archive > vBulletin Modifications > vBulletin 4.x Modifications > vBulletin 4.x Add-ons

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
  #12  
Old 10-05-2014, 02:04 PM
minhmeo.info minhmeo.info is offline
 
Join Date: Jan 2010
Posts: 8
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by thetechgenius View Post
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.
Hi,
It works like charm now. Is there any way to change time wait before redirected?
Example i want member have to wait 3s before redirected.

BTW, great mod!
Reply With Quote
  #13  
Old 10-05-2014, 03:44 PM
minhmeo.info minhmeo.info is offline
 
Join Date: Jan 2010
Posts: 8
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

i've just found new issue, it seems conflict with DBTech Advance Thank/Like

When you click Thank/Like button, you will be redirected to this
Reply With Quote
  #14  
Old 10-05-2014, 05:12 PM
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've just found new issue, it seems conflict with DBTech Advance Thank/Like

When you click Thank/Like button, you will be redirected to this
Try putting your domain in with the protected links.
Reply With Quote
  #15  
Old 10-06-2014, 12:19 AM
minhmeo.info minhmeo.info is offline
 
Join Date: Jan 2010
Posts: 8
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by thetechgenius View Post
Try putting your domain in with the protected links.
Sure, i did it
Please try http://www.dragonbyte-tech.com/produ...t-thanks-like/
Reply With Quote
  #16  
Old 10-06-2014, 06:12 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 sure will. But I can't test it until tomorrow some time, I am really busy (I am a full time father also). But as soon as I can test it out with Adv Post/Thanks/Like, I will PM you with what I find. And hopefully I will have a solution for you too.

Sorry for the problem.
Reply With Quote
  #17  
Old 10-06-2014, 10:09 AM
usefee usefee is offline
 
Join Date: Mar 2010
Posts: 15
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Update 1.0.3 is so usefull
installed and very thanks!
Reply With Quote
Благодарность от:
thetechgenius
  #18  
Old 10-07-2014, 02:41 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 think I found a solution. DBTech Post Thanks uses javascript for clicking Thanks/Like correct?

In your footer template, add this to your Protected Links:
Code:
javascript://

So the code will look something like this:
Code:
<script src="js/anon.js" type="text/javascript"></script>

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

auto_anonymize();
//--></script>

I had a similar issue on my board, my Nav Bar drop down menus use javascript, so the
Javascript drop down menus would show like this:

https://thetechgenius.net/redirect/?to=javascript://


It didn't break the Drop Down, because its just a menu. But it could break other javascript functions, such as DBTech Thanks/Like Addon.

Let me know if it works for you.
Reply With Quote
Благодарность от:
minhmeo.info
  #19  
Old 10-07-2014, 07:18 AM
minhmeo.info minhmeo.info is offline
 
Join Date: Jan 2010
Posts: 8
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Work like charm now! You rock!
Reply With Quote
Благодарность от:
thetechgenius
  #20  
Old 10-07-2014, 06:03 PM
elfenny's Avatar
elfenny elfenny is offline
 
Join Date: May 2012
Posts: 103
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Great, I needed it. Works great thanks
Reply With Quote
  #21  
Old 10-07-2014, 09:42 PM
Dezarii Dezarii is offline
 
Join Date: Mar 2010
Posts: 2
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Is it possible to anonymize links in one private subforum only? Or does it just work for the whole forum?
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:54 AM.


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.04537 seconds
  • Memory Usage 2,347KB
  • 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
  • (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
  • (3)pagenav_pagelink
  • (11)post_thanks_box
  • (4)post_thanks_box_bit
  • (11)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (4)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