How can I cloak all external links on a WP site?

limez

Senior Member
Joined
Apr 7, 2014
Messages
1,083
Reaction score
305
Tried searching for a method online but can't find the exact answer.

Can any please share a method to cloak all external links on a wp site?

I want all external links on my domain to show as mydomain.com/go/?=https://externallink.com

How can I do that? Thanks!
 
You should try searching for plugins can't remember the name but did stumble on one that does something similar to what you're asking.

At least this should center your search.
 
If you are using wordpress try the plugin pretty links

Will it auto cloak all the previous external links on my website?
 
You should try searching for plugins can't remember the name but did stumble on one that does something similar to what you're asking.

At least this should center your search.

I already tried some but none of them are cloaking all external links of my site. The feature they have is like the 301 redirect method. Do you have any other suggestions? Maybe something like a PHP code?
 
I already tried some but none of them are cloaking all external links of my site. The feature they have is like the 301 redirect method. Do you have any other suggestions? Maybe something like a PHP code?

I just wrote a blog about this several days ago, easy without any plugins

https://www.waikey.com/knowledgebase/wordpress-how-to-hide-outbound-links-without-plugin/
forry for my English, but hope you can understand :)

P.S. this is not ad, my blog have not been updated for several months :) I wanted to use it as an affiliate profit source, but now, only for my own use ....
 
Last edited:
I just wrote a blog about this several days ago, easy without any plugins

https://www.waikey.com/knowledgebase/wordpress-how-to-hide-outbound-links-without-plugin/
forry for my English, but hope you can understand :)

P.S. this is not ad, my blog have not been updated for several months :) I wanted to use it as an affiliate profit source, but now, only for my own use ....

Hey man. Your article description is what I am exactly looking for. I will try it as soon as I get home. Thanks!
 
So, I've tried the method told by @moonswamp and it works. I also found this plugin called Mihdan: No External Links. It also works.

In my case, I used the plugin as it offers masking link encoding.
 
Back
Top