Title: API requests return 403
Last modified: November 21, 2020

---

# API requests return 403

 *  Resolved [Christopher Mailänder](https://wordpress.org/support/users/ceem123/)
 * (@ceem123)
 * [5 years, 6 months ago](https://wordpress.org/support/topic/api-requests-return-403/)
 * Hi there,
 * First of all: We love your plugin and it is really super-easy to use. However,
   we experience an issue with the latest version unfortunately: The new version
   causes API requests coming out of Python to be blocked and the API to return 
   a 403 error.
 * The same requests over the browser still work fine though.
 * Is this something we can fix somehow or do we have any possibility to change 
   a setting maybe?
 * If you need further information, please do not hesitate to let me know.
 * Thank you!
 * Best regards,
    Christopher

Viewing 4 replies - 1 through 4 (of 4 total)

 *  Plugin Author [Jeff Starr](https://wordpress.org/support/users/specialk/)
 * (@specialk)
 * [5 years, 6 months ago](https://wordpress.org/support/topic/api-requests-return-403/#post-13692948)
 * Hi Christopher,
 * Thanks for reporting. I will remove python from the user agent rules for the 
   next plugin update. In the meantime if you want to implement the change now, 
   follow these steps:
    1. Open `block-bad-queries.php`
    2. On line 51 find the array of user agents
    3. Locate python in the array and remove it
 * Specifically, remove the following characters exactly:
 * `'python',`
 * Then save changes and test that it’s working correctly.
 *  Thread Starter [Christopher Mailänder](https://wordpress.org/support/users/ceem123/)
 * (@ceem123)
 * [5 years, 6 months ago](https://wordpress.org/support/topic/api-requests-return-403/#post-13694993)
 * Hi Jeff,
 * Thank you very much for the incredibly quick answer.
 * I will try with my colleague.
 *  Plugin Author [Jeff Starr](https://wordpress.org/support/users/specialk/)
 * (@specialk)
 * [5 years, 6 months ago](https://wordpress.org/support/topic/api-requests-return-403/#post-13700581)
 * Hey Christopher, just to follow up. The `python` pattern is removed in the latest
   version of BBQ (20201123). So the above mentioned steps no longer are necessary.
   Thanks again for your feedback.
 * [@swissspaceboy](https://wordpress.org/support/users/swissspaceboy/) BBQ blocks
   requests longer than 2000 characters. That example URL is over 2200 characters(!).
   In any case, the latest version of the plugin can be customized using the [BBQ Customize plugin](https://perishablepress.com/customize-bbq-firewall/).
   It enables you to disable the long-request check so that BBQ never will block
   crazy long URLs (like the example you share above). Thank you very much for reporting.
 *  Thread Starter [Christopher Mailänder](https://wordpress.org/support/users/ceem123/)
 * (@ceem123)
 * [5 years, 6 months ago](https://wordpress.org/support/topic/api-requests-return-403/#post-13702294)
 * Thanks again. I really aprpeciate it!

Viewing 4 replies - 1 through 4 (of 4 total)

The topic ‘API requests return 403’ is closed to new replies.

 * ![](https://ps.w.org/block-bad-queries/assets/icon-256x256.png?rev=1471770)
 * [BBQ Firewall - Fast & Powerful Firewall Security](https://wordpress.org/plugins/block-bad-queries/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/block-bad-queries/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/block-bad-queries/)
 * [Active Topics](https://wordpress.org/support/plugin/block-bad-queries/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/block-bad-queries/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/block-bad-queries/reviews/)

## Tags

 * [api](https://wordpress.org/support/topic-tag/api/)

 * 4 replies
 * 3 participants
 * Last reply from: [Christopher Mailänder](https://wordpress.org/support/users/ceem123/)
 * Last activity: [5 years, 6 months ago](https://wordpress.org/support/topic/api-requests-return-403/#post-13702294)
 * Status: resolved