The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
Redirect all External Links anonymously - Locally Hosted (Updated) Details »» | |||||||||||||||||||||||||||||||
Redirect all External Links anonymously - Locally Hosted (Updated)
Developer Last Online: Dec 2017
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> 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
Screenshots
Show Your Support
|
Благодарность от: | ||
davidg |
Comments |
#2
|
||||
|
||||
What is the pro's and cons of using such a thing?
|
#3
|
||||
|
||||
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. |
#4
|
|||
|
|||
doesn't work with https links but only with http....
|
#5
|
||||
|
||||
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.
|
#6
|
||||
|
||||
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. |
#7
|
|||
|
|||
now works fine, thanks a lot
|
Благодарность от: | ||
thetechgenius |
#9
|
|||
|
|||
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. |
#10
|
||||
|
||||
Quote:
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. |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|