Lolipop + WordPress REST API: Getting 403 Forbidden Even With WAF Disabled

* If you need help with the content of this article for work or development, individual support is available.

Still Getting 403 Errors After Disabling WAF?

Hello, this is ZIDOOKA. I recently encountered a persistent 403 Forbidden error while trying to upload images to WordPress using my custom CLI tool.

"Ah, it must be the WAF (Web Application Firewall)," I thought. So, I went to my hosting provider's control panel (Lolipop!) and disabled the WAF settings.

Lolipop WAF Settings

However, even after disabling WAF and checking .htaccess, the 403 error persists.

No Errors in the Logs

What's even more baffling is that there are no errors recorded in the WAF detection logs.

No Error Log

Usually, if WAF blocks a request, it leaves a log entry here. But in this case, it seems I am being blocked without detection, which is a very strange state.

Suspected Causes

I am currently investigating, but I suspect the following possibilities:

  1. Reflection Time Lag: Changes to WAF settings on Lolipop can take some time to propagate (from a few minutes to an hour).
  2. Other Security Features: Besides WAF, other features like "Overseas IP Restriction" or WordPress security plugins (like SiteGuard) might be interfering.
  3. REST API Restrictions: There might be specific server-side restrictions on the wp-json/wp/v2/media endpoint.

Current Workaround

For now, I have no choice but to upload images manually via the WordPress dashboard. Updating post text (wp/v2/posts) works fine, so it seems only the image data (binary) transmission is being flagged.

If you encounter the same issue, try checking settings other than WAF. I will update this post once I find a definitive solution.

ZIDOOKA!

Need help with the content of this article?

I provide individual technical support related to the issues described in this article, as a freelance developer. If the problem is blocking your work or internal tasks, feel free to reach out.

Support starts from $30 USD (Estimate provided in advance)
Thank you for reading

コメントを残す

メールアドレスが公開されることはありません。 が付いている欄は必須項目です

Policy on AI Usage

Some articles on this site are written with the assistance of AI. However, we do not rely entirely on AI for writing; it is used strictly as a support tool.