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 :

802 Responses to “Link Cloaking Plugin for WordPress”

  1. Cyber Search says:

    hello,

    i have install this plugins..100% work for post and page..but i want cloack my search result by using manual tag but doesn’t work

    help me please

  2. White Shadow says:

    What do you mean by “cloaking your search result”? The built-in search feature that WordPress has, or Google Search, or something else? Either way, I’m pretty sure it can’t be done – the free version of this plugin only works for normal posts/pages, not dynamically generated stuff like search results.

  3. Klaus says:

    i use rssinclude to include rss feeds in pages. i put a php code from rssinclude in the page, so the feed is generates the content. Is it possible to cloak the links generated by this way. Sorry for the bad english.

    Klaus from Germany

  4. White Shadow says:

    Not with the free version, but the premium version should be able to do it.

  5. […] to find free wordpress plugin that can automatically cloak my outgoing link i found the worth plugin Link Cloaking Plugin for WordPress […]

  6. […] Link Cloaking Plugin for WordPress […]

  7. Hi White Shadow
    Just wanted to say a big thanks. Your plugin is exactly what is needed for links to suppliers like Amazon who don’t let you use iframes. I use Go pages for clickbank and now use your plugin for Amazon links.
    Thanks again

  8. Sharon says:

    I have installed this plugin but when I click on the clocked link its just taking me to 404 error page. These are affiliate links I am trying to clock. What should I do to get this to work. Thanks

  9. Promi-Blog says:

    Thanks for this plugin!

  10. dave says:

    yes this plugin will not work on a new install on wordpress getting 404 error please lookin this

  11. dave says:

    Sorry it does work thanks for this great product.

  12. lee says:

    I have a website using Parallels Plesk Panel 10. But it can’t use htaccess. So do you know how to rewrite in web.config to let the clocking working?
    Thanks

  13. Jānis Elsts says:

    Sorry, I’m not familiar with Plesk and so can’t answer that question.

  14. […] Link is worth the extra $40 as I’ve tested and compared both against the other. But I do like the free version and use it religiously on my celebrity style […]

  15. […] Wähle folgenden link-cloaking-plugin-for-wordpress. […]

  16. Brad says:

    I’ve used this plugin for a couple of years and it worked great. I just noticed that it’s giving all 404 errors now when I click on a cloaked link. Not sure on what version of WP it stopped working. I’m using 3.1.1 now.

    Are you planning an update to make it work on current WP versions? Thanks!

  17. Brad says:

    Thanks for the tip Jānis. It was that somehow wp had put two different versions of the permalinks code in the .htaccess file during the WP upgrade process which was screwing up the rewriting of the cloaked urls.

    It’s working fine now. Thanks!

  18. Wachira says:

    I like it! Thanks for your plugin!

  19. Dess says:

    Couldn’t get what I wanted. something like phanthom link cloaker for WP. The ability to add optin forms on any page!

Leave a Reply