Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/nicwaller/yourls-domainlimit-plugin

This plugin for YOURLS limits the creation of shorturls to a list of domains that you define.
https://github.com/nicwaller/yourls-domainlimit-plugin

yourls yourls-plugin

Last synced: 14 days ago
JSON representation

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

Awesome Lists containing this project

README

        

yourls-domainlimit-plugin
=========================

[![test status](https://github.com/nicwaller/yourls-domainlimit-plugin/actions/workflows/test.yaml/badge.svg?branch=master)](https://github.com/nicwaller/yourls-domainlimit-plugin/actions/workflows/test.yaml)

This plugin for [YOURLS](https://github.com/YOURLS/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](https://github.com/nicwaller/yourls-domainlimit-plugin/releases)
1. Copy the plugin folder into your user/plugins folder for YOURLS.
1. 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 ([email protected])

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 .