Site logo

Archived topic

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

3 replies · Started by Han on September 30, 2018

Viewing posts 1–4 of 4

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

Thanks for this Tom!!!

Ed

No problem :)

This archived topic is closed to new replies.