From b7ea480fa0164d31157b3873004dd48e2c4cba9e Mon Sep 17 00:00:00 2001 From: LudoBoggio Date: Sun, 2 Sep 2012 21:50:00 +0200 Subject: [PATCH] README details --- README.md | 14 ++++++++++++-- plugin.php | 1 - 2 files changed, 12 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index 8cae3f0..3cdaafe 100644 --- a/README.md +++ b/README.md @@ -1,4 +1,14 @@ YourlsBlacklistIPs -================== +Plugin for Yourls allowing to blacklist IPs -Plugin for Yourls : IP blacklisting \ No newline at end of file +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"); diff --git a/plugin.php b/plugin.php index 551ae4f..83694af 100644 --- a/plugin.php +++ b/plugin.php @@ -18,7 +18,6 @@ function Ludo_BlackListIP_Root ( $args ) { global $yourls_blacklist_ip; - $BlackListIP = $args[0]; if (in_array($BlackListIP, $yourls_blacklist_ip)) {