Error 403 (help needed)

Hello! No matter what I do, there is always a 403 on my website (most likely a webserver issue), and I tried to fix the permission, but that did not work either.

DO you have modsecurity on your server?

I believe so.

Hello @VexusitySzolgaltatas Happy you are here

First enable dynamic logging Troubleshooting CyberPanel - Docs - CyberPanel Community

Post contents of /home/cyberpanel/error-logs.txt when you visit said website

Possible causes:

  1. Fualty php
  2. Bug in your website code
  3. Modsecurity issue with WordPress

Fix: Go to Security → ModSecurity Rules and add the following code

<locationmatch "/wp-admin/admin-ajax.php">
    SecRuleRemoveById 300013
    SecRuleRemoveById 300015
    SecRuleRemoveById 300016
    SecRuleRemoveById 300017
    SecRuleRemoveById 949110
    SecRuleRemoveById 980130
  1. Fix Permissions

Fix: Go to Websites → → File Manager → Fix Permissions

  1. Chech your .htaccess if you changed anything or added anything. Post contents here if you believe you changed anything

Thank you all for the help! What should I do if I don’t have ModSecurity? Some people have it installed, and some don’t, and that’s why I’m asking.

you use website using another folder or just public_html ?
if another folder , rename that folder like to folder_bk
then open website->manage->select you website , open vhost conf, make sure the doc root same then before , and press save , it will make a new folder like before
copy file from folder_bk to the that folder