How To Encrypt A Link

Table of contents:

How To Encrypt A Link
How To Encrypt A Link

Video: How To Encrypt A Link

Video: How To Encrypt A Link
Video: Encrypt-my.link - Video Preview & How to use ! Encrypt your URL Today 2024, November
Anonim

When working with various Internet projects, site owners often need the ability to hide and encrypt links - this is often necessary for successful work with affiliate programs, which is impossible without encrypting referral links. In most cases, site visitors, hovering over a link, determine that it is an affiliate link, and this negatively affects the number of clicks, which means the total income. This is why links should be encrypted.

How to encrypt a link
How to encrypt a link

Instructions

Step 1

Submit your affiliate link using the following code:

Link name

In this case, a site visitor, hovering the mouse cursor over the link, will not see the entire address, but only the text that you specified at the beginning of the code (in the href). In this case, the actual link address will be the one you specified after the onclick parameter.

Step 2

You can also redirect the link - for this, create a separate PHP file called disc.php and enter the following code into it:

<? php $ URL = "https://website.com/refssylka";

header ("Location: $ URL");

exit ();

?>

Upload this file to the root directory of the site on the server, and now, when you place an affiliate link on a page of your site, add a link to a PHP file to it - so that the link looks like this

Step 3

If you are using a paid hosting with PHP scripts support, the redirect will work properly; but if your site is hosted on a free hosting with limited capabilities, you can create a redirect without PHP. Instead of the described page, create a disc.htm file on your computer, open it with notepad and enter the following into the file:

document.location = " https://website.com/refssylka"

Now, when publishing an affiliate link, you need to add the prefix disc.htm after it.

Step 4

You can also use Internet services for creating shortened links - for example, https://bit.ly or https://tinyurl.com. Working with such services is intuitive. You write the link you need, and the system issues it in a shortened encrypted form. In addition, such services allow you to track the number of visitors who clicked on your link, their geography and much more.

Recommended: