Site logo

[Resolved] Restrict Access to REST API (just like generatepress.com)

Home Forums Support [Resolved] Restrict Access to REST API (just like generatepress.com)

Home Forums Support Restrict Access to REST API (just like generatepress.com)

  • This topic has 3 replies, 2 voices, and was last updated 7 years ago by Tom.
Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #690308
    Han

    Hi there,

    I have a somewhat peculiar support question. Would like to apologise in advance if this isn’t appropriate.

    I’m looking to restrict access to my site’s REST API. I happened to chance upon generatepress.com/wp-json and I’m shown an error message, saying that ‘… only authenticated users can access the REST API.’

    This is exactly what I need to implement for my site. Could you share the way you guys did it?

    Ed

    #690899
    Tom
    Lead Developer
    Lead Developer

    Hi there,

    We’re using this plugin: https://wordpress.org/plugins/disable-json-api/

    Hope this helps 🙂

    #691101
    Han

    Thanks for this Tom!!!

    Ed

    #691186
    Tom
    Lead Developer
    Lead Developer

    No problem 🙂

Viewing 4 posts - 1 through 4 (of 4 total)
  • You must be logged in to reply to this topic.