README details
This commit is contained in:
14
README.md
14
README.md
@ -1,4 +1,14 @@
|
|||||||
YourlsBlacklistIPs
|
YourlsBlacklistIPs
|
||||||
==================
|
Plugin for Yourls allowing to blacklist IPs
|
||||||
|
|
||||||
Plugin for Yourls : IP blacklisting
|
This plugin is intended to be used with YOURLS (cf. http://yourls.org)
|
||||||
|
|
||||||
|
It has been tested on v1.5.1
|
||||||
|
|
||||||
|
Current version is 1.0, created on 09/02/2012
|
||||||
|
|
||||||
|
Contact Ludo at Ludo.Boggio+GitHub@GMail.com
|
||||||
|
|
||||||
|
In the actual version, blackliste IPs must be add by hand in the config.php file, addind, at the end, a line like this :
|
||||||
|
|
||||||
|
$yourls_blacklist_ip = array ("149.3.136.114","109.190.10.179");
|
||||||
|
@ -18,7 +18,6 @@ function Ludo_BlackListIP_Root ( $args ) {
|
|||||||
|
|
||||||
global $yourls_blacklist_ip;
|
global $yourls_blacklist_ip;
|
||||||
|
|
||||||
|
|
||||||
$BlackListIP = $args[0];
|
$BlackListIP = $args[0];
|
||||||
|
|
||||||
if (in_array($BlackListIP, $yourls_blacklist_ip)) {
|
if (in_array($BlackListIP, $yourls_blacklist_ip)) {
|
||||||
|
Reference in New Issue
Block a user