Jump to content

Recommended Posts

Posted

Hello!

I have some «Select Options» fields in my backend and when I try to make changes to them and hit «Save», I receive a 403 error (Forbidden, Access to this resource on the server is denied.)

Any ideas what this could be?

Thanks a lot in advance, Andrej

Posted

Hi BitPoet, thanks a lot for your reply! I could not change the setting you mentioned myself, so I contacted the host. They added the following code to my .htaccess file:

# ModSec Exceptions by cyon

<IfModule mod_security2.c>
        SecRuleRemoveById 340145
</IfModule>

A rule in their Web Application Firewall led to the error.

Thanks again!

  • Like 1
Posted
2 hours ago, tron1000 said:

They added the following code to my .htaccess file:

I'm glad you could have it fixed, however it is worth to note that the site might also get hit by other mod_security rules in the future, so it is best to turn off mod_security altogether. ProcessWire does not need it....

for example: http://www.amitb.info/dealing-with-a-mod_security-nightmare-with-apache-and-codeigniter/

quote:

"First thing, don’t waste your time chatting with your hosting company support staff. The front line support staff is not very equipped with dealing these complicated things. They are usually adept in dealing with normal things which occurs in volumes. So skip them altogether."

also: https://stackoverflow.com/questions/12928360/how-can-i-disable-mod-security-in-htaccess-file

  • Like 2
Posted

Hi szabesz! Thanks for the information! That's good to know. I will let my host turn mod_security off … Köszönöm szépen!

  • Like 1
  • 4 years later...
Posted

I've just tried ModSecurity 2.9.3-1 running the Owasp core ruleset 3.3.0 on an Ubuntu 20.04 LTS server and my select option fields seem to be working well. Perhaps ModSecurity and the core ruleset are more mature now.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...