Title: PHP Firewall Functionality
Last modified: September 2, 2022

---

# PHP Firewall Functionality

 *  Resolved [Tommy78](https://wordpress.org/support/users/tommy78/)
 * (@tommy78)
 * [3 years, 9 months ago](https://wordpress.org/support/topic/php-firewall-functionality/)
 * Hi,
    After updating this AIOWPS to 5.0.2 there is a notification saying that 
   PHP Firewall functionality has been added and that I should activate it. After
   activating, I get the message that it might take approximately 5 minutes for 
   it to become active.
 * How can I determine if the PHP Firewall functionality is active?
    Where can I
   find settings for the functionality? Where can I find the setting to disable 
   the PHP Firewall funcitonality should I want to do so?

Viewing 5 replies - 1 through 5 (of 5 total)

 *  Plugin Contributor [Prashant Baldha](https://wordpress.org/support/users/pmbaldha/)
 * (@pmbaldha)
 * [3 years, 9 months ago](https://wordpress.org/support/topic/php-firewall-functionality/#post-15973314)
 * The AIOS plugin logic is so smart that it determines whether the new firewall
   system is implemented or not.
 * If it is not implemented, it will show other admin notices for how to setup it
   up manually.
 * You will check the aios-firewall.php file that exists in the root folder to verify
   that the new firewall is working properly.
 * By default, this new firewall system has 6G rules. If you would like to disable
   it, go to Admin Dashboard > Firewall > 6G Blacklist Firewall Rules and untick
   the checkbox labelled as “Enable 6G Firewall Protection” and save it.
 * If you want to completely remove this new firewall system, deactivate the AIOS
   plugin and all files related to the new firewall system will be removed instantly.
 *  Thread Starter [Tommy78](https://wordpress.org/support/users/tommy78/)
 * (@tommy78)
 * [3 years, 9 months ago](https://wordpress.org/support/topic/php-firewall-functionality/#post-15974037)
 * Hi Prashant,
    Thank you for your reply but my questions are not answered.
 * You mention the new firewall system is using the 6G rules, but according to the
   notification in the AIOWPS-dashboard the firewall system is PHP-based. The 6G
   rules are .htaccess-based.
    What is correct?
 * According to your answer, I can disable the PHP-based firewall function by turning
   of the 6G rules in the dashboard. However, the 6G rules are already disabled 
   in all of my WordPress-websites since almost two years. I am already using the
   7G rules, which are more robust, and have added them as custom rules in the .
   htaccess-file.
    At the same time I can see an aiowps-bootstrap.php-file in the
   root-directory of my WordPress isntallation and also some references to this 
   file in the .htaccess-file in the same directory. So my conclusion is now that
   the PHP-based firewall is still actie (the aiowps-bootstrap.php-file exists),
   but the 6G rules aren’t (they are .htaccess-rule based and do no appear in the.
   htaccess-file).
 * So, again, please answer my questions:
    1. Where can I find the settings for 
   this PHP-based firewall functionality? 2. How can I disable this PHP-based firewall
   functionality?
 * And in addiiton:
    3. What does this PHP-based firewall functionality add to this
   existing one?
 *  Plugin Contributor [Prashant Baldha](https://wordpress.org/support/users/pmbaldha/)
 * (@pmbaldha)
 * [3 years, 9 months ago](https://wordpress.org/support/topic/php-firewall-functionality/#post-15974450)
 * Hi Tommy,
 * You are right the 6G firewall rules are htaccess based. For AIOS PHP-based firewall
   rules, we have converted them to PHP-based rules. The htaccess rules are working
   only on the apache server. In these days, other webservers like nginx, IIS and
   Litespeed are used too. so, this feature makes the AIOS plugin web server independent
   and portable. If our user needs to change the server in the future, the AIOS 
   plugin should help to secure their site.
 * If the 6G firewall rules are disabled, then PHP-based firewalls do nothing. The
   PHP firewall without 6G rules is just an empty wrapper outside your WP site.
 * To disable and remove the PHP-based firewall, you should deactivate the plugin.
 * **To disable PHP based firewall manually, please follow the below instructions:**
 * 1. Open the .htaccess file and remove the all code wrapped between `# Begin AIOWPSEC
   Firewall` and `# End AIOWPSEC Firewall`
    2. Remove the aios-firewall.php file
   from the root folder
 * In the future, we will implement 7G firewall rules in PHP based firewall.
 *  Plugin Contributor [Prashant Baldha](https://wordpress.org/support/users/pmbaldha/)
 * (@pmbaldha)
 * [3 years, 9 months ago](https://wordpress.org/support/topic/php-firewall-functionality/#post-15975500)
 * For expert users like you, We will make a setting an option to disable PHP based
   firewall in a future release. We have also planned to give the dismiss link on
   the PHP-based firewall admin notice.
 * Thank you very much for your feedback.
 *  Thread Starter [Tommy78](https://wordpress.org/support/users/tommy78/)
 * (@tommy78)
 * [3 years, 9 months ago](https://wordpress.org/support/topic/php-firewall-functionality/#post-15975723)
 * That would be great, thanks!

Viewing 5 replies - 1 through 5 (of 5 total)

The topic ‘PHP Firewall Functionality’ is closed to new replies.

 * ![](https://ps.w.org/all-in-one-wp-security-and-firewall/assets/icon-256x256.
   png?rev=2798307)
 * [All-In-One Security (AIOS) – Security and Firewall](https://wordpress.org/plugins/all-in-one-wp-security-and-firewall/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/all-in-one-wp-security-and-firewall/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/all-in-one-wp-security-and-firewall/)
 * [Active Topics](https://wordpress.org/support/plugin/all-in-one-wp-security-and-firewall/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/all-in-one-wp-security-and-firewall/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/all-in-one-wp-security-and-firewall/reviews/)

 * 5 replies
 * 2 participants
 * Last reply from: [Tommy78](https://wordpress.org/support/users/tommy78/)
 * Last activity: [3 years, 9 months ago](https://wordpress.org/support/topic/php-firewall-functionality/#post-15975723)
 * Status: resolved