How to prevent direct viewing of the robots.txt file?
-
Typing any https://www.domainname.com/robots.txt shows the contents of this file. How can I prevent people from viewing this while still allowing search engines access? I know htaccess and htpasswd files can’t be viewed in plain site like this.
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
- The topic ‘How to prevent direct viewing of the robots.txt file?’ is closed to new replies.