vBulletin Mods

The Official vBulletin Modifications Site
https://www.vbulletin.org/forum/showthread.php?t=314691

Redirect all External Links anonymously - Locally Hosted (Updated)
by thetechgenius
03 Oct 2014 20:29

2 Attachment(s)
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:


Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

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.

ozzy47 04 Oct 2014 00:09

What is the pro's and cons of using such a thing?

thetechgenius 04 Oct 2014 01:13

Quote:

Originally Posted by ozzy47 (Post 2517583)
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.

gbicar 04 Oct 2014 12:26

doesn't work with https links but only with http....

thetechgenius 04 Oct 2014 16:14

Quote:

Originally Posted by gbicar (Post 2517632)
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.

thetechgenius 04 Oct 2014 16:22

Quote:

Originally Posted by gbicar (Post 2517632)
doesn't work with https links but only with http....


I found a solution.

Edit js/anon.js:


Find:


Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.


Replace:


Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.


I updated the OP with this code edit. Thank you.

gbicar 04 Oct 2014 19:48

now works fine, thanks a lot

thetechgenius 04 Oct 2014 19:56

Quote:

Originally Posted by gbicar (Post 2517680)
now works fine, thanks a lot

Your welcome. I'm glad its working good for you.

minhmeo.info 05 Oct 2014 05:25

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

https://www.vbulletin.org/forum/external/2014/10/19.png

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.

thetechgenius 05 Oct 2014 06:06

Quote:

Originally Posted by minhmeo.info (Post 2517715)
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

https://www.vbulletin.org/forum/external/2014/10/19.png

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.

minhmeo.info 05 Oct 2014 15:04

Quote:

Originally Posted by thetechgenius (Post 2517717)
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!

minhmeo.info 05 Oct 2014 16:44

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
https://www.vbulletin.org/forum/external/2014/10/18.png

thetechgenius 05 Oct 2014 18:12

Quote:

Originally Posted by minhmeo.info (Post 2517755)
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
https://www.vbulletin.org/forum/external/2014/10/18.png

Try putting your domain in with the protected links.

minhmeo.info 06 Oct 2014 01:19

Quote:

Originally Posted by thetechgenius (Post 2517771)
Try putting your domain in with the protected links.

Sure, i did it :D
Please try http://www.dragonbyte-tech.com/produ...t-thanks-like/

thetechgenius 06 Oct 2014 07:12

Quote:

Originally Posted by minhmeo.info (Post 2517824)

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.


All times are GMT. The time now is 01:16.

Powered by vBulletin® Version 3.8.14
Copyright © 2020, MH Sub I, LLC dba vBulletin. All Rights Reserved. vBulletin® is a registered trademark of MH Sub I, LLC
Copyright ©2001 - , vbulletin.org. All rights reserved.