Title: Create This Plugin &#8211; URL
Last modified: August 19, 2016

---

# Create This Plugin – URL

 *  [Jack Cola](https://wordpress.org/support/users/jackcola/)
 * (@jackcola)
 * [15 years, 5 months ago](https://wordpress.org/support/topic/create-this-plugin-url/)
 * Hi,
    I have at least two wordpress sites that I want to add a little piece of
   functionality, which I cannot write myself due to my experience.
 * In short, it is a URL shorter where it scans links into a post and automatically
   masks them.
 * This is different to the other 1000s of URL masker plugins as this one is all
   automatic meaning you don’t have to manual mask your URLS.
 * There is a plugin called [http://www.harleyquine.com/php-scripts/short-url-plugin/](http://www.harleyquine.com/php-scripts/short-url-plugin/)
   which I really like, which would be great to extend the functionality off.
 * Using this as a basis, all that has to be added is a function that scans through
   posts (or new posts), looks for hyperlinks, automatically add them to the database
   which then uses the rowid as the masked url.
 * Then, in all posts, the URL will show the masked url instead of the original 
   URL as it will retreive it from the database automatically.
 * For Example:
    I write a post that has a link to [http://www.affiliatelink.com](http://www.affiliatelink.com).
   I enter that link in the post. The plugin will automaically scan that url in 
   the post and add it to the database and give it automatically a short url. When
   someone views the post, wordpress will lookup the url and change the url to the
   masked url and when someone clicks it, it will go the affiliatelink.com
 * **Conclusions**
    Is it possible for someone to make something like this? So far,
   I made a plugin that gets all urls on a page and adds it to the database. I just
   gotta get wordpress to change the links in the post.
 * Thanks

Viewing 1 replies (of 1 total)

 *  Thread Starter [Jack Cola](https://wordpress.org/support/users/jackcola/)
 * (@jackcola)
 * [15 years, 5 months ago](https://wordpress.org/support/topic/create-this-plugin-url/#post-1852990)
 * **Update:**
    Or something like this plugin [http://wordpress.org/extend/plugins/wpaffi/](http://wordpress.org/extend/plugins/wpaffi/)
   but has a prettier link mask and you dont have to add the attribute to hyperlinks.

Viewing 1 replies (of 1 total)

The topic ‘Create This Plugin – URL’ is closed to new replies.

## Tags

 * [shortner](https://wordpress.org/support/topic-tag/shortner/)
 * [url](https://wordpress.org/support/topic-tag/url/)

 * In: [Hacks](https://wordpress.org/support/forum/plugins-and-hacks/hacks/)
 * 1 reply
 * 1 participant
 * Last reply from: [Jack Cola](https://wordpress.org/support/users/jackcola/)
 * Last activity: [15 years, 5 months ago](https://wordpress.org/support/topic/create-this-plugin-url/#post-1852990)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
