Need Help with 403 Forbidden Error When Adding Ad Script

#1
Hey everyone,

I’m in a bit of a situation here. I think the LiteSpeed plugin is blocking something on my WordPress site. Here’s what’s going on:

I’m trying to add an ad script to the header using a code injection plugin so I don’t have to mess with the WordPress file editor. But when I hit save, I get this error:

ERROR 403 Forbidden: Access to this resource on the server is denied!

From what I understand, it might be related to the .htaccess configuration, but I can’t seem to find the specific command or code that’s causing this error. My coding skills are pretty limited, and while I’ve looked into the LiteSpeed plugin settings, I’m not entirely sure what to do next.

I’ll attach a screenshot for reference. If anyone has any ideas or can help me troubleshoot this, I’d really appreciate it! Thanks a lot!
 

Attachments

abk

Administrator
Staff member
#2
I don't believe LiteSpeed Cache for WordPress Plugin is the cause for this. You can set Disable All Features to ON and see if the 403 is still being hit: https://docs.litespeedtech.com/lscache/lscwp/troubleshoot/#verify-its-an-lscache-issue
In case the issue is resolved once you disable all LSCache features, then please use the WordPress forum for our WordPress plugin questions/issues: https://www.litespeedtech.com/suppo...-a-question-about-the-wordpress-plugin.17040/

If the issue persists even with LSCache disabled, I would recommend you check the server stderr/error log. These troubleshooting steps from web server side may help trace the root cause: https://docs.litespeedtech.com/lsws/cp/cpanel/403-error/
 
Top