Jump to content

  •  

Important Notification

Members,
For your security and privacy please read this IV News Article to protect your community and your self from IPS. This is urgent and should be taken seriously.
Thank you,
IV Management

- - - - -

(Easy Way) Add a link anonimyzer to your IPB4 forum

link anonimizer anonimizer ipb4

  • Please log in to reply
2 replies to this topic

#1 VegaH21

VegaH21

    Newbie

  • Member
  • Pip
  • 5 posts

Posted 22 August 2016 - 02:58 AM

Hello guys! I'm making this tutorial because I dind't found anything useful for IPB on the magnific Internet!

First of all, I'm not english native, so sorry for my grammar xP

I'll make another tutorial days later, about how to create a link encrypter + anonimizer editing the plugin "Cloak 1.2", but for now I'll show you the "easy way".

We need 4 stuffs:
*A Community with IPB v4.x
*Access to the IPB4 admin Panel
*Access to the FTP, cPanel or something for create/upload a .js file
*Your favorite free anonymizer (for example: https://href.li/? or https://anonym.to/? )

Steep 1:
Create a file in the location of your preference, name it as you want with the .js extension, for example: /public_html/anonymize.js

And add this code to the file:

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[i] . href;
			if (a_to_vi . match(a_to_vf[j]) || !a_to_vi || !a_to_vi . match("http"))
				{
				a_to_vh = true;
				}

			j++;
			}

		if (a_to_vh == false)
			{
			a_to_ve[i] . href = "https://href.li?" + a_to_vi;
			a_to_vb++;
			a_to_vc+= i + ":::" + a_to_ve[i] . 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;
	}
Note: this is a .js file from anonym.to with a little editing for https links support.

Steep 2:
Now, find and edit this text in this .js file " and replace it with your favorite anonymizer (or do not edit anything if you wanna still using href.li as anonymizer)

Steep 3:
Login to the IPB4 admin panel, then go to System > Advertisements > Create new.

In Announce type select "Supply HTML Code", in the announce content add this code:

<script src="/anonimizer.js" type="text/j&#097;v&#097;script"></script>
<script type="text/j&#097;v&#097;script"><!--
protected_links = "yourwebsite.com";
auto_anonymize();
//--></script>

Editing "/anonimizer.js" with your js filepath and "yourwebsite.com" with your website domain. You can add more domains if you want avoid anonymizing that domains links (for example: "domain1.com", "domain2.com" . . .).

In the announce location select the "Header" part of your website, and select the users groups who will see the anonymized links.

Save the announce, activate it and that's all!

Now check for your website, when you click on one link it should be anonymizer + url. For example: https://href.li/?htt...ision-virus.com and replace it with your favorite anonymizer (or do not edit anything if you wanna still using href.li as anonymizer)

Steep 3:
Login to the IPB4 admin panel, then go to System > Advertisements > Create new.

In Announce type select "Supply HTML Code", in the announce content add this code:

<script src="/anonimizer.js" type="text/j&#097;v&#097;script"></script>
<script type="text/j&#097;v&#097;script"><!--
protected_links = "yourwebsite.com";
auto_anonymize();
//--></script>

Editing "/anonimizer.js" with your js filepath and "yourwebsite.com" with your website domain. You can add more domains if you want avoid anonymizing that domains links (for example: "domain1.com", "domain2.com" . . .).

In the announce location select the "Header" part of your website, and select the users groups who will see the anonymized links.

Save the announce, activate it and that's all!

Now check for your website, when you click on one link it should be anonymizer + url. For example: [url="https://href.li/?htt...ision-virus.com

Hope this be useful :)

#2 Guest_Black Spider_*

Guest_Black Spider_*
  • Guest

Posted 08 September 2016 - 09:11 PM

Nice, but i edited your javascript code in another look to prevent errors :)

#3 Gh0S7

Gh0S7

    Newbie

  • Member
  • Pip
  • 1 posts

Posted 16 September 2017 - 10:49 AM

I have upgraded to ipb 4.2.4 and they have disabled js for security. Is there another way to do this?





Also tagged with one or more of these keywords: link anonimizer, anonimizer, ipb4

0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users