Title: Block API reqs except whitelisted IP&#8217;s
Last modified: November 20, 2020

---

# Block API reqs except whitelisted IP’s

 *  Resolved [tipat](https://wordpress.org/support/users/tipat/)
 * (@tipat)
 * [5 years, 6 months ago](https://wordpress.org/support/topic/block-api-reqs-except-whitelisted-ips/)
 * Guys,
 * Is there a way to block API requests for all except a set of whitelisted IP’s?
   
   Cant seem to find such an option, so not sure if available or should be looking
   for another solution?
 * Using Litespeed with their quic.cloud and need to whitelist their IP’s for domain
   key.
 * Thanks

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

 *  Plugin Contributor [mbrsolution](https://wordpress.org/support/users/mbrsolution/)
 * (@mbrsolution)
 * [5 years, 6 months ago](https://wordpress.org/support/topic/block-api-reqs-except-whitelisted-ips/#post-13690145)
 * Hi, have you tried simply to whitelist the IP addresses you wish to allow access
   to your site?
 * Regards
 *  Thread Starter [tipat](https://wordpress.org/support/users/tipat/)
 * (@tipat)
 * [5 years, 6 months ago](https://wordpress.org/support/topic/block-api-reqs-except-whitelisted-ips/#post-13690179)
 * Thanks [@mbrsolution](https://wordpress.org/support/users/mbrsolution/)
 * Did not see such an option to whitelist an IP, but only to whitelist for logins.
   
   Is there such an option in your plugin (even when API is disabled) and if so,
   under what menu?
 * Thanks heaps.
 *  Plugin Contributor [mbrsolution](https://wordpress.org/support/users/mbrsolution/)
 * (@mbrsolution)
 * [5 years, 6 months ago](https://wordpress.org/support/topic/block-api-reqs-except-whitelisted-ips/#post-13690358)
 * Hi,
 * > Did not see such an option to whitelist an IP, but only to whitelist for logins.
 * Just so I understand you correctly. What are you trying to achieve?
 * Thank you
 *  Thread Starter [tipat](https://wordpress.org/support/users/tipat/)
 * (@tipat)
 * [5 years, 6 months ago](https://wordpress.org/support/topic/block-api-reqs-except-whitelisted-ips/#post-13690400)
 * Hi,
 * Do not allow WP Rest API access to the public (non-logged in users),
    but allow
   it to whitelisted IP’s without login. Possible?
 *  Plugin Contributor [mbrsolution](https://wordpress.org/support/users/mbrsolution/)
 * (@mbrsolution)
 * [5 years, 6 months ago](https://wordpress.org/support/topic/block-api-reqs-except-whitelisted-ips/#post-13690455)
 * We do have an option to block WordPress REST API access for unauthorized requests.
   Go to **Miscellaneous -> WP Rest API** and enable
    **Disallow Unauthorized REST
   Requests:**.
 * However the above might not work as you expect it. Give it a try and report back
   with the outcome.
 * Thank you.
 *  Thread Starter [tipat](https://wordpress.org/support/users/tipat/)
 * (@tipat)
 * [5 years, 6 months ago](https://wordpress.org/support/topic/block-api-reqs-except-whitelisted-ips/#post-13690489)
 * Thanks.
    This I know, its what I tried, but how you do allow besides login/auth
   by simply white-listing the IP so they can access without login?
 *  Plugin Contributor [mbrsolution](https://wordpress.org/support/users/mbrsolution/)
 * (@mbrsolution)
 * [5 years, 6 months ago](https://wordpress.org/support/topic/block-api-reqs-except-whitelisted-ips/#post-13690528)
 * Unfortunately that is not currently available in our plugin.
 * Thank you

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

The topic ‘Block API reqs except whitelisted IP’s’ is closed to new replies.

 * ![](https://ps.w.org/all-in-one-wp-security-and-firewall/assets/icon-256x256.
   png?rev=2798307)
 * [All-In-One Security (AIOS) – Security and Firewall](https://wordpress.org/plugins/all-in-one-wp-security-and-firewall/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/all-in-one-wp-security-and-firewall/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/all-in-one-wp-security-and-firewall/)
 * [Active Topics](https://wordpress.org/support/plugin/all-in-one-wp-security-and-firewall/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/all-in-one-wp-security-and-firewall/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/all-in-one-wp-security-and-firewall/reviews/)

 * 7 replies
 * 2 participants
 * Last reply from: [mbrsolution](https://wordpress.org/support/users/mbrsolution/)
 * Last activity: [5 years, 6 months ago](https://wordpress.org/support/topic/block-api-reqs-except-whitelisted-ips/#post-13690528)
 * Status: resolved