Link Cloaking Plugin Update
Some time ago I created a WordPress plugin that can cloak affiliate links automatically. Today I’m releasing a new version, with all-new feature(s)!
The main improvement I’ve implemented is “static link cloaking”. The previous version of the plugin could only cloak links that you’ve actually used in a post, which is inconvenient if you want to use the cloaked link anywhere else, like forums or e-mails, because the cloaked URL might change or stop working if you edited the post. This is still true for automatically cloaked links, but now there’s a new feature available - static links.
Static Links Are Different
- Independent from the rest of your blog’s content - add any links and use them anywhere!
- No numbers tacked on the end.
- The number of hits is tracked!
Here’s an actual example of how a (static) cloaked link’s URL looks -
http://w-shadow.com/goto/GTrends/ (goes to my keyword research tool).
Using Static Links
You can add, remove or view the links in the Manage -> Cloaked Links tab. This page contains a form for adding new links and a list of existing cloaked links, if any. The list also shows the number of hits for each link. Note that the plugin counts all hits, including those generated by search engines and the like. This means that the number will probably be a bit higher than the actual amount of clicks the link received.
A link is defined by a name and a destination URL. The name is what you’ll see in the cloaked URL - in the example above it’s “GTrends”. The name shouldn’t contain any special symbols, like spaces, question marks, non-latin characters and so on. For best compatibility, use only latin letters, numbers and underscores in the name field. The name is case-insensitive and must be unique for each link.
The destination URL indicates the address to which the visitor will be redirected when he clicks the link. No surprises here - just make sure the URL is correct.
Adding static cloaked links is easy - just enter the name and URL in the corresponding boxes and click “Add”. The resulting cloaked URL will look similar to this - http://your_blog_address.com/more/MyLink/. “more” is a prefix that you can set in Options -> Link Cloaking and “MyLink” is the link’s name. You can also view the cloaked URL by clicking the “show cloaked url” thingy near each links destination URL.
To delete a cloaked link, click the “Delete” link in the corresponding row.
Download : WordPress Link Cloaking Plugin, ver. 1.1 (9 KB)
Installation Notes
After you’ve uploaded and activated the plugin, you must go to Options -> Permalinks and click Update Permalinks. This is necessary even if you have the previous version installed. The cloaked links won’t work if you don’t do this! Complete installation instructions and more information about this plugin are available in the original post.
June 8th, 2008 at 7:35 pm
The instructions were written for WP 2.3, so in WP 2.5 it’s slightly different. In WP 2.5, “Settings” replaced “Options”, and you only need to “Save Changes” for the permalinks to be updated.
The plugin works with WP 2.5, but you may need to manually move the cloaking-related redirection code to the top of your .htaccess file.
June 8th, 2008 at 6:46 pm
I am having some difficulty getting this plugin to work…I have it installed but several of the directions are in conflict with what I am seeing. For instance you say “go to Options -> Permalinks and click Update Permalinks.” I do not have any “Options” tab…is this the same as “Settings” (I am using wordpress(.org) 2.5. If I go to Settings->Permalinks there is no “Update Permalinks” setting; only a “Save Changes” at the bottom…please help…I have no idea what I am missing.
June 5th, 2008 at 8:05 am
Ah cool tool bro
recommended
June 5th, 2008 at 12:49 am
The plugin uses the same exact algorithm for pages and posts, so there shouldn’t be any difference - unless there’s a conflict with another plugin.
There’s the “Exclusions” feature to define which links you don’t want cloaked. There’s no “Inclusions” list, though you could use selective cloaking - adding the <– cloak –> tags - to achieve a similar result. I might add that feature in a later version, but … don’t count on it
June 5th, 2008 at 12:34 am
Hi. Great idea for a plugin.
I loaded the latest version and followed the instructions, but I’m getting… well.. unpredictable results. Although the redirects seem to wok fine for the posts, links on pages all redirect back to the “home page”. And, not all of the links in pages get cloaked. Not seeing a pattern, so I’m not quite sure what to tell you.
It there any way to “fine tune” the plugin a bit more? For instance, can I tell the plugin I only want Clickbank and/or Amazon links to get cloaked, and let everything else just sail through like normal?
May 12th, 2008 at 9:04 pm
Yes, it uses “301 Moved Permanently” redirects.
May 12th, 2008 at 8:48 pm
Hi White Shadow,
Is your plugin the same as performing a 301 redirect?
May 8th, 2008 at 11:19 am
If it’s a plugin conflict, you could try deactivating all other plugins and checking if it works then. If yes, reactivate them one by one and note which one causes the problem.
Does the direct URL work?
May 8th, 2008 at 4:33 am
Reinstalled but the problem is still there.
May 7th, 2008 at 7:49 pm
The download link is correct. Just to be sure, I’ll reupload the file, and you can try downloading it again.
Maybe you can access the page directly by going to :
yoursite.com/wp-admin/edit.php?page=link-cloaking-plugin/wplc_link_cloaking_plugin.php
There’s probably some conflict with another plugin…
May 6th, 2008 at 11:29 am
The plugin is active and I can see “Options -> Link Cloaking.” I tested the cloaked links in my posts. They are fine. But I can’t see “Manage -> Cloaked Links” and the hits.
I downloaded from http://w-shadow.com/files/link-cloaking-plugin.zip. Is the file correct?
May 6th, 2008 at 10:03 am
That’s very unusual. Is the other menu - Options -> Link Cloaking - also missing, or just this one? Are you sure the plugin is active?
May 6th, 2008 at 3:31 am
I installed version 1.2.2 on WP 2.3.1 but I couldn’t find the Manage -> Cloaked Links tab you mentioned. Did I miss anything? Thanks.
May 1st, 2008 at 10:02 pm
Typically it should be at the very top of the file, though it may vary depending on your configuration. It might also work if you put it right after the “# BEGIN WordPress” bit.
May 1st, 2008 at 9:58 pm
ok thanks
does the code in the .htaccess file need to be in the wordpress area
‘# BEGIN WordPress” or before that
April 26th, 2008 at 11:41 am
It should work in WP 2.5, at least it does for me. Just remember to update permalinks, and make sure the cloaker-related code is at the top of .htaccess.
April 26th, 2008 at 11:32 am
It should work in WP 2.5, at least it does for me. If you upgraded from 2.x to 2.5 you need to update permalinks (again) for the plugin to work. Also, make sure the “link cloaker” code is at the top of .htaccess (the cloaker-related part of the file is marked as such).
April 26th, 2008 at 8:33 am
does this work with wordpress 2.5
have not gotten it to work
April 4th, 2008 at 5:16 am
[...] most recent version of the link cloaking plugin, though, adds what the author calls static cloaked links. These are what you want to use for [...]
February 15th, 2008 at 4:38 am
Hi, Thanks for your great plugin.. Unfortunately I’m unable to manage it work on my blog. I’m using wordpress version 2.3.3
When I click on the link its only redirected to my home page. Kindly pls help. Thanks in advance.
January 10th, 2008 at 7:40 pm
Not in the foreseeable future, no.
January 10th, 2008 at 4:23 pm
Is there any chance to make it work with custom fields?
Thanks,
Milos
December 21st, 2007 at 12:56 am
Hey na3s, I’m glad you like the plugin.
Unfortunately I’m pretty sure there isn’t a hook for that.
December 21st, 2007 at 12:44 am
Hello!
Great plugin. I had an idea I thought I would share with you, without actually knowing if there is a hook available for it. But here is the idea anyways:
The ability to cloak links that are included in the template (or more specifically within the loop)
This would allow the capability to automatically create the link by setting some post-meta data and have the link show up outside the post-entry and instead within the template. Just an idea!
Thanks again for the great plugin. =)
December 8th, 2007 at 2:41 pm
This site runs on WP 2.3.1 and, as you can see, it works here. I also worked fine when I had 2.2.2. I’d guess it’s conflicting with one of your other plugins, maybe.
December 8th, 2007 at 10:55 am
Hi White Shadow,
Your plugin is great, but after trying it on a WP 2.2.3 site, it doesn’t work. When I move my cursor over it, the URL still shows the affiliate ID and such.
So far, it has only worked for WP 2.2.1 and maybe 2.2.2.
I’ve not tried it on WP 2.3 but it probably won’t work too?
S.G
October 24th, 2007 at 2:04 pm
Email sent
October 24th, 2007 at 7:07 am
Hi,
any chance you could shoot me an email please?
I’d really like to have a chat with you about this link cloak plugin.
cheers,
Mat
September 19th, 2007 at 12:16 am
[...] Update 19.09.2007 : vesrion 1.1 - now with static link cloaking! [...]