Disable robots file or dont allow search console to crawl the api project
I am using laravel application only for API purpose and all design is in react so i dont want to allow google search to crawl my api project folder which is present in server. how to prevent this?
I came across this thread while investigating a similar issue. I have a Nuxt project that uses my Laravel powered API. I can see in my error reporting platform that there is very frequent unauthorized access attempts on my API. Obviously an unauthorized exception is thrown, but I need to understand what is happening.
I can see in the HTTP headers that the requests are coming from Googlebot. My API endpoints are not exposed on the Nuxt project.
My question is, how is it possible that Googlebot is trying to access my endpoints?