Does it matter if we upload the php-firewall folder with its contents to our site directory?
vs
Just uploading the contents themselves not being inside a folder, just straight to our site directory?
After i use this php-firewall, many ppl compain cann't login to my server, it pop message:
"Protection died IPs active,this ip range is not allowed"
I check it from from php-firewall, then i found this, it is tue by default: WTF!
if ( PHP_FIREWALL_PROTECTION_RANGE_IP_SPAM === true ) {
$ip_array = array('24', '186', '189', '190', '200', '201', '202', '209', '212', '213', '217', '222' );
$range_ip = explode('.', PHP_FIREWALL_GET_IP );
if ( in_array( $range_ip[0], $ip_array ) ) {
PHP_FIREWALL_LOGS( 'IPs Spam list' );
die( _PHPF_PROTECTION_SPAM );
}
}
if ( PHP_FIREWALL_PROTECTION_RANGE_IP_DENY === true ) {
$ip_array = array('0', '1', '2', '5', '10', '14', '23', '27', '31', '36', '37', '39', '42', '46', '49', '50', '100', '101', '102', '103', '104', '105', '106', '107', '114', '172', '176', '177', '179', '181', '185', '192', '223', '224' );
$range_ip = explode('.', PHP_FIREWALL_GET_IP );
if ( in_array( $range_ip[0], $ip_array ) ) {
PHP_FIREWALL_LOGS( 'IPs reserved list' );
die( _PHPF_PROTECTION_SPAM_IP );
}
}
WTF! Blocked so many IPs range for what, what the hell author is thinking!
I set it off!
If Your Getting This Error Protection died IPs active
Edit File firewall.php
You will see those two codes
Just Change True To False
define('PHP_FIREWALL_PROTECTION_RANGE_IP_DENY', false );
define('PHP_FIREWALL_PROTECTION_RANGE_IP_SPAM', false );
Now Problem Fixed
trouble with searching on forum. All links from search result are blocked, if in link '?highlight=' present.
Sorry for my bad english.
Has anyone tried to integrate this into MyBB 1.8.5?