does anyone here know how to make an API URL only accessible via GET requests on a specific website and not available by viewing the page itself?

this is what i mean:

if you try to view the page manually, that doesn’t work

anything other than a GET request doesn’t work either

and GET requests only go through on a specific website

comments (single view)

Use mongodb, it's easy and much more secure

View all comments