Changeset 1000804
- Timestamp:
- 10/02/2014 05:40:49 PM (12 years ago)
- Location:
- wp-maltor/trunk
- Files:
-
- 2 edited
-
readme.txt (modified) (2 diffs)
-
wpmaltor.php (modified) (6 diffs)
Legend:
- Unmodified
- Added
- Removed
-
wp-maltor/trunk/readme.txt
r988203 r1000804 13 13 == Description == 14 14 15 This plugin "hides" the WordPress site if traffic is coming from malicious IP or Tor Network. IP list is updated every 30 minutes calling 2 free services: https://www.dan.me.uk/torlist/ for Tor Exit Nodes and http://myip.ms/files/blacklist/csf/latest_blacklist.txt for malicious IP list.15 This plugin "hides" the WordPress site if traffic is coming from malicious IP or Tor Network. IP list is updated every 30 minutes from http://iprep.wpmaltor.com/ and http://torlist.wpmaltor.com/ which are using 2 free services: https://www.dan.me.uk/torlist/ for Tor Exit Nodes and http://myip.ms/files/blacklist/csf/latest_blacklist.txt for malicious IP list. 16 16 17 17 ## **When a malicious IP is detected the plugin will act in one of these ways:** … … 37 37 == Changelog == 38 38 39 = 0.1.4 = 40 *New URL to download IP list 41 39 42 = 0.1.3 = 40 43 *Fixed some problems determining real IP -
wp-maltor/trunk/wpmaltor.php
r988203 r1000804 4 4 Plugin URI: http://wordpress.org/plugins/wp-maltor/ 5 5 Description: This plugin bans Tor Network's and malicious IPs from visiting the site. 6 Version: 0.1. 36 Version: 0.1.4 7 7 Author: davidmerinas,miguel.arroyo 8 8 Author URI: http://www.davidmerinas.com … … 15 15 if($active) 16 16 { 17 $urls=array("https://www.dan.me.uk/torlist/","http://myip.ms/files/blacklist/csf/latest_blacklist.txt"); 17 //$urls=array("https://www.dan.me.uk/torlist/","http://myip.ms/files/blacklist/csf/latest_blacklist.txt"); 18 $urls=array("http://torlist.wpmaltor.com/","http://iprep.wpmaltor.com/"); 18 19 WP_MalTor_refreshIPs($urls); 19 20 $ip=WP_MalTor_getuserIP(); … … 32 33 $streamoptions = stream_context_create(array( 33 34 'http' => array( 34 'timeout' => 535 'timeout' => 10 35 36 ) 36 37 ) … … 71 72 function WP_MalTor_checkip($ip){ 72 73 $iplist = get_option("WP_MalTor_iplist"); 73 if(i n_array($ip,$iplist))74 if(is_array($iplist)&&in_array($ip,$iplist)) 74 75 { 75 76 $blocked = get_option("WP_MalTor_blockedlist"); … … 91 92 break; 92 93 case "redirection": 93 $url = get_option("WP_MalTor_redirect_url");94 $url = str_replace(array('&','<','>'), array('&amp;','&lt;','&gt;'),htmlspecialchars(get_option("WP_MalTor_redirect_url"),ENT_QUOTES)); 94 95 if(!isset($url)||$url==null||trim($url)=="") 95 96 { … … 167 168 <tr style="width:420px" valign="top"> 168 169 <th scope="row">Redirection URL (http://...)</th> 169 <td><input style="width:320px" type="text" name="WP_MalTor_redirect_url" value="<?php echo get_option('WP_MalTor_redirect_url'); ?>" /></td>170 <td><input style="width:320px" type="text" name="WP_MalTor_redirect_url" value="<?php echo str_replace(array('&','<','>'), array('&amp;','&lt;','&gt;'),htmlspecialchars(get_option('WP_MalTor_redirect_url'),ENT_QUOTES)); ?>" /></td> 170 171 </tr> 171 172
Note: See TracChangeset
for help on using the changeset viewer.