Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

mod_security - IP access Issue

I'm trying to access my website using it's IP address, earlier it was working fine. But after I installed and configured mod_security and mod_security OWASP, Apache is giving out 403 error.

Forbidden
You don't have permission to access / on this server.

What should be done so that I can access the website using the IP from the browser ??

like image 248
arvind_mv Avatar asked Jan 17 '26 17:01

arvind_mv


1 Answers

The rule for blocking direct IP access is in the CRS file here:

base_rules/modsecurity_crs_21_protocol_anomalies.conf

You need to get the ID of the rule and disable it using SecRuleRemoveById

like image 164
Daniel Scott Avatar answered Jan 21 '26 08:01

Daniel Scott



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!