Welcome to the Question2Answer Q&A. There's also a demo if you just want to try it out.
+1 vote
386 views
in Q2A Core by
How do I prevent access to my sitemap and robots.txt file?

There are those who can access the file of the robots.txt and sitemap by typing on browser the following:

https://mysite.com/sitmap.xml

https://mysite.com/robots.txt

I want to prevent these files from appearing to any other user
by
+2
Both files are public instructions for search engines. Hiding them would be counter-productive. Also, why would you even care? Is there an actual problem you're trying to solve?
by
No, it's not a problem at all
But some sites when you search for it do not appear
by
Some sites may not have those files. They're not a requirement, just good practice.

Please log in or register to answer this question.

...