Hi Everyone,
I just want to know that is there any way to restrict /api call to get content data for all content types without updating content type view permission or to restrict all /api calls coming from a domain.
I would like to block all /api call coming from a domain(example.com) but all calls from the same server (localhost:8080) would respond.
How can i achive this ? Please suggest.
For example:
If I hit the URL as (http://example.com/api/content/render/false/query/+contentType:{ContentType}/user/ad...@dotcms.com/password/admin), it should not respond with content type data
and
if hit the URL on the server as (http://localhost:8080/api/content/render/false/query/+contentType:{ContentType}/user/ad...@dotcms.com/password/admin), it should respond with content type data.
Thanks