How to block access to the site directory through the browser?

Good afternoon, how to close the root of the project from sharing through the browser?
ΠΈΠ·ΠΎΠ±Ρ€Π°ΠΆΠ΅Π½ΠΈΠ΅

How to make a message about unavailability when trying to go to the root of the site through a browser, like here, and how to do it with modx tools?

If you don’t want the files to be listed in the /assets directory, you could add a .htaccess file to the directory with the content:

Options -Indexes
1 Like

its true, thank very much

This topic was automatically closed 2 days after discussion ended and a solution was marked. New replies are no longer allowed. You can open a new topic by clicking the link icon below the original post or solution and selecting β€œ+ New Topic”.