Linux - SoftwareThis forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
I need to stop the viewing of robots.txt on my website. I get the contents of the file displayed in my browser when I issue the command: http://www.inwoon.net/robots.txt
Help me stop this as it displays all the directories I don't want them to go to. I greatly appreciate the help as I am right at the level of Linux knowledge to be dangerous, capable but still dangerous.
Thanks much;
robots.txt list directories or files that should not be indexed by webcrawler. However the rules are not mandatory for those programs. Consequently the robots.txt must be available to the public to give the crawlers a chance to read your rules. Furthermore robots.txt-rules do never apply to web browsers.
Thus if you want not show this file, make it unreadable for all clients or for certain user agents. If the directories contain secret contents, why are they accessible from the internet? Perhaps you should require the user to authenticate before accessing this directories.
Thank you for the response. Are you saying I should popup an authentication dialog before letting anyone view the contents of a directory?
Is this something I have to do in apache. I am hosting my own web server with my own static ip in house. I have total access to the configuration. If you could direct me to relevant documentation on how to set this idea up I would be forever in your debt.
Once again thank you for the answer!!
@repo: Thanks that's an awesome lead. I will implement and report back.
That still leaves the problem of the directories being available to list in a browser.
ie. http://www.inwoon.net/EnergyLibrary/
While I want this one to be displayed all of the other I don't want them to look at.
Any suggestions will be greatly appreciated.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.