Thread Rating:
  • 3 Vote(s) - 5 Average
  • 1
  • 2
  • 3
  • 4
  • 5
[TuT]: MyBB PHP Website Firewall (with logs)
#11
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?
Reply
#12
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!
Reply
#13
This user has been denied support. This user has been denied support.
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
Reply
#14
trouble with searching on forum. All links from search result are blocked, if in link '?highlight=' present.

Sorry for my bad english.
Reply
#15
this mirror Download Smile

http://code.google.com/p/php-firewall/downloads/list
Reply
#16
Has anyone tried to integrate this into MyBB 1.8.5?
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)