Using NGINX – Seeing my Server IP Blocked in Firewall Logs
-
Using NGINX – Seeing my Server IP Blocked in Firewall Logs
I tried putting an .htninja whitelist of my IP just above the root using this command in the file:
<?php
/*
+====================================================================+
| NinjaFirewall optional configuration file |
| |
| See: https://nintechnet.com/ninjafirewall/wp-edition/help/?htninja |
+====================================================================+
*/if ( $_SERVER[“REMOTE_ADDR”] == ‘MYSERVERIP’ ) {
return ‘ALLOW’; // whitelist
}…but it is producing 500 errors on the site. Disabled for now.
What do I need to do to fix this?
Thanks in advance!
- The topic ‘Using NGINX – Seeing my Server IP Blocked in Firewall Logs’ is closed to new replies.