It is a good idea to manage outbound links, i.e links by which your users leave your blog. Using a simple PHP code even a beginner blogger is able to generate extra page views this way. With some extra coding the information can also be used to create statistics about the behavior of your website’s visitors.
Create link.php File
But for now, let’s just create a file called
Add the following lines of code to the file:
Save the file and upload it to the root folder of your FTP server. To do this use your favorite FTP software. The program that I use and recommend is WinSCP.
Use Special Link Syntax
With file.php in place, use this link syntax anywhere on your website:
<a href="/link.php?http://www.stosu.com/how-to/" title="Structure of Success — How-To">How-To Tutorials at stosu.com</a>
Use the full URL of the target destination of your link after the
As I said — this solution is easy and efficient. You can try it here: How-To Tutorials at stosu.com.
Let me know in the comments below whether you found this tutorial helpful. And whether you were able to apply outbound links management on your blog.
Liked this post?
Subscribe to our newsletter to receive early notification of new posts and deals: