Azure-Functions icon indicating copy to clipboard operation
Azure-Functions copied to clipboard

How do hide Azure function app from search results ?

Open apsthisdev opened this issue 3 years ago • 2 comments

What is the correct way to hide the published Azure function app from search result ?

For an eventual consistent systems the Azure Function app is mostly the backend that a client or a server can access. So it needs to be hidden from searches.

I tried adding a RobotsEndpoint function but the function URL will have a api/{robots.txt} route name and thus it is no longer in the root directory.

How to explicitly add robots.txt User-agent: * Disallow: /

apsthisdev avatar Mar 03 '22 08:03 apsthisdev

There's no official guidance or feature to make this simpler. So currently, you'd need to do something like creating the appropriate route and serving the file, but we're transferring this to the appropriate repo to track.

FYI @mattchenderson

fabiocav avatar Mar 15 '22 21:03 fabiocav