How do I hide xml file?

392 Views Asked by At

How do I hide xml file? I don't want to appear the file in google results. How I access denied this file for user?

1

There are 1 best solutions below

0
On

I don't want to appear the file in google results.

Create a robots.txt file to instruct search engines not to index it.

How I access denied this file for user?

Add in some layer of authentication+authorisation. Preferably the same one as the rest of your site uses.