/yourls-domainlimit-plugin

This plugin for YOURLS limits the creation of shorturls to a list of domains that you define.

Primary LanguagePHPGNU General Public License v3.0GPL-3.0

yourls-domainlimit-plugin

test status

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.

Installation

  1. Download the latest release
  2. Copy the plugin folder into your user/plugins folder for YOURLS.
  3. Activate the plugin with the plugin manager in the admin interface.

Configuration

Define a list of allowed domains in your user/config.php. For example: $domainlimit_list = array( 'mydomain.com', 'otherdomain.com' );

You may also optionally specify a list of usernames that are exempt from this restriction. domainlimit_exempt_users = array( 'bobadmin' );

License

Copyright 2013 Nicholas Waller (code@nicwaller.com)

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/.