Answer the question
In order to leave comments, you need to log in
Which folders to close in robots.txt in laravel?
Hello.
It is necessary to create a robots.txt file for a Laravel project, but I do not quite understand whether folders such as "app", "routes", etc., as well as individual files such as "env", "composer" should be closed from robots "?
Attached the structure of the project in the form of a photo.
Answer the question
In order to leave comments, you need to log in
Folders app
, routes
, as well as files .env
(and others), in principle, should not be accessible from the outside. If this is the case for you, then it’s not the robots.txt that needs to be edited, but the hands of the one who set up the web server this way.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question