N
N
Nikita Rubinkovskiy2018-06-19 20:40:11
robots.txt
Nikita Rubinkovskiy, 2018-06-19 20:40:11

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.5b293feb4f393221447680.jpeg

Answer the question

In order to leave comments, you need to log in

2 answer(s)
J
JhaoDa, 2018-06-19
@JhaoDa

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.

Y
Yan-s, 2018-06-19
@Yan-s

Only the public directory should be accessible from the web. There are no specialized robots.txt for laravel.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question