Link Cloaking Plugin for WordPress

This is a plugin for WordPress that can automatically cloak outgoing links in your posts and/or pages.

Download plugin
(Note: May not be compatible with the latest version of Eclipse Link Cloaker.)

Features

  • Choose what to cloak – all links, only the links you specify or no links at all.
  • Choose where to cloak – posts, pages or both.
  • Exception list – links pointing to domains in this list will not be cloaked. For example, this is useful if you have chosen to cloak all links but don’t want to cloak the links to your own domains.
  • Compatible with all browsers – the link cloaker plugin doesn’t use JavaScript so it will work even for visitors that have disabled JS.
  • “Smart” cloaking – relative, ambiguous or malformed URLs will not be cloaked. Better safe than sorry.
  • If desired, you can also add your own cloaked links manually.

Examples

Lets say you’ve got a link you want to be cloaked.

<a href="http://example.com/?affiliate=me">Cloak Me</a>

Once you install the plugin, it will automatically, without requiring any configuration, turn it into a cloaked link when it’s displayed to a visitor:

<a href="http://yoursite.com/goto/Cloak_Me/12/34">Cloak Me</a>

Here’s a live example: Cloak Me

As an alternative to the fully automatic cloaking, you can switch the plugin to “selective cloaking” and tag the links you want to cloak manually:

<a href="http://example.com/?affiliate=me">Cloak Me<!--cloak--></a>

Note: The plugin does not actually edit your posts or permanently modify your links. Instead, it switches them on-the-fly whenever someone views them on your site. When editing a post in the admin panel, you will see the original, uncloaked link.

Download

Version 1.8.4 : link-cloaking-plugin.zip (16 KB)

Requirements :

  • WordPress 2.8 – 3.3
  • mod_rewrite. If “pretty permalinks” work on your blog then you probably have this already.

(Note: May not be compatible with the latest version of Eclipse Link Cloaker.)

Installation

  1. Download the link-cloaking-plugin.zip file.
  2. Unzip the file.
  3. Upload the `link-cloaking-plugin` folder to the `/wp-content/plugins/` directory.
  4. Activate the plugin through the ‘Plugins’ menu in WordPress.
  5. (Optional) Go to Settings -> Link Cloaking and modify the default settings to your liking.

FAQ

Why are some of my links not getting cloaked?

The most common possibilities are:

  • Links in the sidebar, header, comment area and so on can’t be cloaked by the free version of the plugin. It only works on links in page/post body. Upgrade to the premium version to cloak links anywhere on the page.
  • Links added using other plugins, theme features or custom fields are also supported only in the premium version.
  • JavaScript links, as well as Flash and context-sensitive ads are not supported by any version of this plugin.

Why are none of my links getting cloaked?

  • If using “Seletive cloaking”, make sure you have actually marked some links with the <!--cloak--> tag.
  • Double-check that the links in question aren’t added or modified by plugins, the theme, or custom fields.
  • Contact me. You might have found a bug.

The exception list doesn’t seem to work. What could be the problem?

Make sure to enter only domain names in the “Exceptions” box. For example, given a link like “http://example.com/directory/page.html”, the domain name is the “example.com” part. So to prevent the plugin from cloaking that link, add “example.com” (sans quotes) to the “Exceptions” box. Entering the full URL or “http://example.com/” will not work.

Additionally, if some of your links point to example.com and some to www.example.com, you will need to add both of those to the exceptions.

Why do some cloaked links redirect me back to my homepage?

Most likely, your post(s) contain links created or modified by other plugins, the theme, or custom fields. Either remove those links, or upgrade to the premium version.

Why do some cloaked links redirect me back to my homepage?

See the previous question.

Why do cloaked links display a “Not Found” error?

  • Make sure you’re using pretty permalinks.
  • Your .htaccess might be out of date. To update it, go to Settings -> Permalinks and click “Save Changes”.
  • Your hosting company may be blocking browser access to PHP files in the /wp-content/plugins/ directory, usually as a security measure. The free version of the plugin is not compatible with these hosts. Consider using the premium version instead.

I have a question not addressed in this FAQ. What should I do?

Either leave a comment below, or email me directly. My email address can be found on the contact page.

Related posts :

769 Responses to “Link Cloaking Plugin for WordPress”

  1. [...] Affiliate Link URL’s? There is also various link cloaking plugins for wordpress available. ° Link Cloaking Plugin for WordPress | W-Shadow.com ° [...]

  2. Jessica says:

    You are awesome for sharing such a great plugin with us! Thanks!

  3. PotPieGirl says:

    Hi =)

    I’ve been using this plugin on many of my sites and I love it – thank you!

    Problem – today I upgraded my first blog to WordPress 2.7 and now ALL my cloaked links are broken.

    Any insight?

    I sure hate to have to go wandering the web to find all the places I put these cloaked links…lol!

    Your help would be most appreciated!

    Thank you!

    Jennifer
    ~PotPieGirl

  4. White Shadow says:

    @PotPieGirl – Oh, I guess you probably need to check the .htaccess, see if the link cloaker code is still there and update permalinks if it isn’t.

    I’ve upgraded to WP 2.7 too and the cloaked links still work fine.

  5. PotPieGirl says:

    @White Shadow

    Oh, THANK YOU!!!! Something so simple and it worked like a charm – AND saved me a ton of work!!!!

    Jennifer
    ~PotPieGirl

  6. Mario says:

    Would be nice to have. “Cloak all links except tagged with ;)

  7. Peter says:

    Thought I’d mention. I just started a wordpress 2.7 blog. I used the link cloaker plugin but it wouldn’t work.

    So I resaved my permalinks and it worked fine, anyone having 2.7 problems should try resaving permalinks. Got the tip above, thanks.

  8. Hi… AWESOME PLUGIN!

    Works great… I just thought I’d mention that I also use Blog Mechanics Keyword Linker Simply because it is not case restrictive and adds a “no-follow” to the links. (http://www.dijksterhuis.org/wordpress-plugins/keyword-link-plugin/)

    However, I notice that Link Cloaker won’t cloak the links that BM Keyword Link generates… any thoughts on that?

  9. White Shadow says:

    @Michael Smith – As a rule, this plugin won’t cloak links generated by other plugins. This is because it would be very hard to detect those links.

  10. [...] sites that will either be flipped, or that I want to keep separate from my main sites, the free Link Cloaking Plugin is a brilliant [...]

  11. Marc says:

    first of all: thank you for the plugin!

    is there a chance to use wild-cards in the “cloaked links”?

    merry christmas!

  12. White Shadow says:

    @Marc – I’ll add that to the idea list :)

  13. YourDealz.de says:

    I use this great plugin but some links createt with the plugin AmazonSimpleAdmin doenst work. They only link to my Site.
    How can I fix this?
    AmazonSimpleAdmin is from here: http://www.ichdigital.de/amazonsimpleadmin

    Please help me

  14. Edson says:

    Hi Everyone

    anyone else having problems with the plugin and the new version of wordpress? I just noticed that all my links inside my posts are not working anymore so I had to turn off the plugin.

    Let me know if anyone else is having this problem.

    Thanks
    Edson

  15. White Shadow says:

    @Edson – As someone suggested a few comments below, try updating permalinks again. That should help.

  16. [...] Link Cloaking Plugin: ├ľzellikle bol d─▒┼č link verdi─činiz sitelerde veya affiliate programlar─▒ tan─▒t─▒m─▒ yapt─▒─č─▒n─▒z sitelrde link adresini saklamas─▒ nedeni ile ├žok faydal─▒. Tek eksi─či istatistik tutmamas─▒ ve ayn─▒ ba┼čl─▒k alt─▒ndaki terimlere ortak bir link belirleyememesi Umar─▒m ileride bu ├Âzellikler eklenir. [...]

  17. White Shadow says:

    @ YourDealz.de – I repeat : no, this plugin won’t cloak links generated by other plugins. This is not a bug. It simply can’t be done in the current implementation.

Leave a Reply