403 Forbidden Errors When Saving WordPress Content


A 403 Forbidden Error while saving posts or pages means your web server or a security layer blocked your request. It often happens when you add HTML, CSS, JavaScript, or tracking codes, causing a firewall to mistake your text for a malicious attack.
 
Follow this step-by-step guide to resolve the issue.

1. Check ModSecurity or Hosting Firewalls (Most Common)

Web Application Firewalls (WAF) like ModSecurity scan data sent to your server. They frequently mistake legitimate content updates for code-injection attacks.
 
  1. Log in to cPanel
  2. Locate the ModSecurity icon under the security section.
  3. Turn the firewall Off temporarily.
  4. Return to WordPress and try saving your content.
Resolution: If saving works, ModSecurity caused the issue. Turn it back On immediately for security, and contact your host's support team. Ask them to check the server logs and whitelist the specific rule blocking your IP.

2. Configure WordPress Security Plugins

Plugins like Wordfence, Sucuri, or Solid Security can accidentally block the background scripts (AJAX or REST API) used to save your work.
 
  • Wordfence Learning Mode: Go to Wordfence > Firewall > Manage Firewall. Change the status to Learning Mode, save your content in WordPress, and then switch it back to Enabled and Protecting. This teaches the plugin to trust your actions.
  • Deactivation Test: If using other security plugins, temporarily deactivate them. If the error disappears, check the plugin documentation to whitelist the /wp-admin/admin-ajax.php or /wp-json/ endpoints.

3. Verify Server File and Folder Permissions

Incorrect file permissions can block the server from writing data.
 
  1. Connect to your site using an FTP client (like FileZilla) or your hosting File Manager.
  2. Locate your main WordPress files.
  3. Ensure all folders have a numeric permission value of 755.
  4. Ensure all files have a numeric permission value of 644.
Note: Never set permissions to 777, as this creates severe security risks.

4. Regenerate Your .htaccess File

A corrupted configuration file can disrupt communication between your browser and the server.
 
  1. Use FTP or File Manager to find the .htaccess file in your root folder.
  2. Rename the file to .htaccess_old.
  3. Log into your WordPress dashboard.
  4. Go to Settings > Permalinks and click Save Changes without editing any settings. This creates a clean, default file.

5. Check Cloudflare or CDN Rules

If you use Cloudflare, its external firewall might be blocking your administrative traffic.
 
  1. Log in to your Cloudflare Dashboard.
  2. Go to Security > Events and look for blocked actions matching your IP address.
  3. Create a WAF Rule to bypass security checks for your specific IP or for requests targeting the /wp-admin/ directory.
If you want to customise this template further, tell me your hosting provider or security plugin so I can include exact menu names and tailored instructions.
 
 
 

Was this answer helpful?

Still need help?

Our friendly support team are ready to offer assistance with any issues you may be encountering.
Click the button below to open a ticket:
Open Ticket

 WordPress Hosting

Fast hosting for WordPress
Experience the best in Australian WordPress hosting with lightning fast servers, built-in caching, and performance tools.

 Build Your Website

Sitejet Hosting
Build your site fast with a drag and drop editor with no coding required. 140+ quality, templates to get you started.

 Register Domains

It all starts with your domain name
Find the perfect domain and register now with our competitive pricing on all extensions.

 Web Hosting

Fast, local, secure hosting
Full featured hosting on cPanel with multiple server locations around the country.
« Back