Title: Link cloaking with redirect script?
Last modified: August 19, 2016

---

# Link cloaking with redirect script?

 *  [julie24n24](https://wordpress.org/support/users/julie24n24/)
 * (@julie24n24)
 * [16 years, 7 months ago](https://wordpress.org/support/topic/link-cloaking-with-redirect-script/)
 * Hi
    I am a newbie here and have recently created a blog with affiliate links.
   I have been looking into purchasing a link cloaking software but was told that
   this is unnecessary. Instead I have been told touse the following redirect script
 * **The instructions given are as follows:**
 * >  Just place the affiliate link in the script and save it with whatever nice
   > looking name you want and then use that in you rweb pages. When you save it
   > put .php as the extension and not .txt
 * **
    SCRIPT as follows:
 * >  <?php
   >  header( ‘Location: [http://www.yoursite.com/new_page.html&#8217](http://www.yoursite.com/new_page.html&#8217););?
   > >
 * As I said, I am a complete newbie and I am totally lost as to what all of this
   means! Can someone please explain it to me in generic language??
    Thanks! Julie

Viewing 2 replies - 1 through 2 (of 2 total)

 *  [s_ha_dum](https://wordpress.org/support/users/apljdi/)
 * (@apljdi)
 * [16 years, 7 months ago](https://wordpress.org/support/topic/link-cloaking-with-redirect-script/#post-1223175)
 * That script will immediately redirect people to whatever URL you provide. Is 
   that what you want?
 *  Moderator [cubecolour](https://wordpress.org/support/users/numeeja/)
 * (@numeeja)
 * [16 years, 7 months ago](https://wordpress.org/support/topic/link-cloaking-with-redirect-script/#post-1223178)
 * The script would work, but its a lot of messing about as you’d have to manually
   create and maintain a separate text file for each link.
 * It would probably be easier to use the [Simple Link Cloaker](http://wordpress.org/extend/plugins/ilwp-simple-link-cloaker/)
   plugin.
 * Or do a search for ‘redirect’ or ‘cloak’ in the
 *  [plugin directory](http://wordpress.org/extend/plugins/) There are a few plugins
   available that should do the job.

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘Link cloaking with redirect script?’ is closed to new replies.

 * In: [Everything else WordPress](https://wordpress.org/support/forum/miscellaneous/)
 * 2 replies
 * 3 participants
 * Last reply from: [cubecolour](https://wordpress.org/support/users/numeeja/)
 * Last activity: [16 years, 7 months ago](https://wordpress.org/support/topic/link-cloaking-with-redirect-script/#post-1223178)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
