Modifiying the Blacklist IP plugin to create the whitelisted domain plugin

This commit is contained in:
Panthro
2012-09-09 20:06:57 -03:00
parent 621c359ad4
commit a9cdb85b5c
2 changed files with 57 additions and 56 deletions

View File

@ -1,22 +1,20 @@
YourlsBlacklistIPs
YourlsWhiteListDomains
Plugin for Yourls allowing to blacklist IPs
Plugin for Yourls allowing only whitelisted domains
This plugin is intended to be used with YOURLS (cf. http://yourls.org)
It has been tested on YOURLS v1.5 and v1.5.1
Current version is 1.1, updated on 09/03/2012
Current version is 1.0
Contact : Ludo at Ludo.Boggio+GitHub@GMail.com
Contact : panthro.rafael@gmail.com
INSTALL :
- In /user/plugins, create a new folder named BlackListIP
- In /user/plugins, create a new folder named whitelist-domains
- In this new directory, copy the plugin.php file from this repository
- Go to the Plugins administration page and activate the plugin
You will see in the admin section a new admin page where you can add the IP addresses you want to blacklist.
You will see in the admin section a new admin page where you can add the domain addresses to the whitelist.
Please enter one IP address per line. Other syntax should provide unexpected behaviours.
Roadmap contains the possibility to use regexp to specify the IP addresses. No, no date provided :)
Enter one domain in each line, please, remove the www when adding a new domain, the code works on both.