Login
Username: Password:
Remember me

[Sign Up] / [Recover Password]

Theme / Language

Popular
New Torrents
new name
Size: 18.40 MB
Most active
new name
S: 74 L: 3
New Posters
Anonymize external links
Controls ·  Search New posts · Mark unread

You are in: Forum / Forum / Torrent Trader / v3 Mods Completed

2021-02-11 15:28:25
I was cleaning up old code and realized the file I had was not filtering https links, so now it does. This mod used to be here I thought, but I couldnt find it to post an update, so I make a new thread.
In all theme footer.php before last /body tag put
<script src="<?php echo $site_config["SITEURL"];?>/scripts/anon.js" type="text/javascript"></script>
<script type="text/javascript"><!--
protected_links = "<?php echo $site_config["SITEURL"];?>";
auto_anonymize();
//--></script>
 
TTv3 Micro Edition
Ubuntu 20.04.6 LTS Server
Mysql Version: 10.3.39-MariaDB-0ubuntu0.20.04.2
PHP Version: 7.4.3-4ubuntu2.20
Apache Version: Apache/2.4.59 (Ubuntu)
Last edited by MicroMonkey on 2021-02-11 19:21:07
2021-02-11 19:23:01
Then create anon.js file and place in scripts folder. If you dont have a scripts folder in your site root, just create one or change the path in the first set of code above. This will filter all links, including https and http
var protected_links = "";
var a_to_va = 0;
var a_to_vb = 0;
var a_to_vc = "";
function auto_anonymize()
{
auto_anonyminize();
}
function auto_anonyminize()
{
var a_to_vd = window.location.hostname;
if(protected_links != "" && !protected_links.match(a_to_vd))
{
protected_links += ", " + a_to_vd;
}
else if(protected_links == "")
{
protected_links = a_to_vd;
}
var a_to_ve = "";
var a_to_vf = new Array();
var a_to_vg = 0;
a_to_ve = document.getElementsByTagName("a");
a_to_va = a_to_ve.length;
a_to_vf = a_to_fa();
a_to_vg = a_to_vf.length;
var a_to_vh = false;
var j = 0;
var a_to_vi = "";
for(var i = 0; i < a_to_va; i++)
{
a_to_vh = false;
j = 0;
while(a_to_vh == false && j < a_to_vg)
{
a_to_vi = a_to_ve.href;
if(a_to_vi.match(a_to_vf[j]) || !a_to_vi || (!a_to_vi.match("http://") && !a_to_vi.match("https://")))
{
a_to_vh = true;
}
j++;
}

if(a_to_vh == false)
{
//// Comment or uncomment below to select a different redirect service ////
//a_to_ve.href = "http://anon.to?" + a_to_vi;
a_to_ve.href = "http://nullrefer.com?" + a_to_vi;
//a_to_ve.href = "http://hideref.org/?" + a_to_vi;
//a_to_ve.href = "http://dereferer.com/?" + a_to_vi;
//a_to_ve.href = "http://hidemyass.com?" + a_to_vi;
//a_to_ve.href = "http://redirect.am?" + a_to_vi;
//a_to_ve.href = "http://lolinez.com?" + a_to_vi;
a_to_vb++;
a_to_vc += i + ":::" + a_to_ve.href + "\n" ;
}
}
var a_to_vj = document.getElementById("anonyminized");
var a_to_vk = document.getElementById("found_links");
if(a_to_vj)
{
a_to_vj.innerHTML += a_to_vb;
}
if(a_to_vk)
{
a_to_vk.innerHTML += a_to_va;
}
}
function a_to_fa()
{
var a_to_vf = new Array();
protected_links = protected_links.replace(" ", "");
a_to_vf = protected_links.split(",");
return a_to_vf;
}
 
TTv3 Micro Edition
Ubuntu 20.04.6 LTS Server
Mysql Version: 10.3.39-MariaDB-0ubuntu0.20.04.2
PHP Version: 7.4.3-4ubuntu2.20
Apache Version: Apache/2.4.59 (Ubuntu)
Users online

No users online

Search



Statistics

    Torrents

  • Tracking: 3
  • Todays torrents: 0
  • Seeders: 0
  • Leechers: 0
  • Peers: 0
  • Downloaded: 89.96 GB
  • Uploaded: 9.86 GB

  • Members

  • We have: 838
  • New today: 0
  • Guest today: 9

  • Online

  • Total online: 9
  • Members: 0
  • Guests online: 9
  • Comments: 3
  • Messages: 1,728