Title: Require authentication for all requests
Last modified: August 31, 2016

---

# Require authentication for all requests

 *  Resolved [chuhaystr](https://wordpress.org/support/users/chuhaystr/)
 * (@chuhaystr)
 * [10 years, 3 months ago](https://wordpress.org/support/topic/require-authentication-for-all-requests/)
 * Hi, there.
    I want to close my WP site from external users. So, how to turn of
   REST API for all unauthorized users, even GET requests ? I want users could only
   read their own posts/pages etc via REST after authentication.
 * [https://wordpress.org/plugins/rest-api/](https://wordpress.org/plugins/rest-api/)

Viewing 1 replies (of 1 total)

 *  Plugin Author [Daniel Bachhuber](https://wordpress.org/support/users/danielbachhuber/)
 * (@danielbachhuber)
 * [10 years, 3 months ago](https://wordpress.org/support/topic/require-authentication-for-all-requests/#post-7149008)
 * Here’s a code snippet you can use to disable endpoints for all unauthenticated
   requests [https://gist.github.com/danielbachhuber/8f92af4c6a8db784771c](https://gist.github.com/danielbachhuber/8f92af4c6a8db784771c)

Viewing 1 replies (of 1 total)

The topic ‘Require authentication for all requests’ is closed to new replies.

 * ![](https://ps.w.org/rest-api/assets/icon-256x256.png?rev=1346297)
 * [WordPress REST API (Version 2)](https://wordpress.org/plugins/rest-api/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/rest-api/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/rest-api/)
 * [Active Topics](https://wordpress.org/support/plugin/rest-api/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/rest-api/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/rest-api/reviews/)

## Tags

 * [authentication](https://wordpress.org/support/topic-tag/authentication/)
 * [get](https://wordpress.org/support/topic-tag/get/)
 * [rest](https://wordpress.org/support/topic-tag/rest/)

 * 1 reply
 * 2 participants
 * Last reply from: [Daniel Bachhuber](https://wordpress.org/support/users/danielbachhuber/)
 * Last activity: [10 years, 3 months ago](https://wordpress.org/support/topic/require-authentication-for-all-requests/#post-7149008)
 * Status: resolved