This plugin for YOURLS limits the creation of shorturls to a list of domains that you define.
You might want to limit the domains allowed for shortlinks so that your brand is not misused by people linking to resources outside your domain and outside your control.
- Download the latest release
- Copy the plugin folder into your user/plugins folder for YOURLS.
- Activate the plugin with the plugin manager in the admin interface.
Define a list of allowed domains in the Admin Interface`
You must also specify a list of usernames that are exempt from this restriction and are the only users allowed to edit the list of allowed domains in the Admin Interface.
domainlimit_exempt_users = array( 'bobadmin' );
Copyright 2013 Nicholas Waller (email@example.com) Copyright 2017 quantumweb.co
This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.
This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
You should have received a copy of the GNU General Public License along with this program. If not, see http://www.gnu.org/licenses/.