Limited Links
June 7, 2014 ยท View on GitHub
Plugin for YOURLS 1.5+.
Description
Limit redirections of a specific link with '_' + 'number' added to this link.
Installation
- In
/user/plugins, create a new folder namedlimited-links. - Drop these files in that directory.
- Go to the Plugins administration page ( eg
http://sho.rt/admin/plugins) and activate the plugin. - Have fun!
Usage
- Create your short URLs as usual
- Pick the generated short URL then append
_(or your ownLIMIT_BEFORE_CHAR) - Then append the number which correspond to the hits limitation
- Share the given URL
Note: In steps 2/3, you're not supposed to edit the link, the first generated URL have to continue to exist.
Optionnal Setup
Character _ could be change in plugin.php.
- Locate
define( 'LIMIT_BEFORE_CHAR', '_' );at line 12 - Change
_with your specific character