Filled site hosting. It is necessary to do so that the user could not follow the links, for example, www.site.com/images/
Do you need to search for something in Apache settings or can it be done using php?
By php I don’t know how, but in Apache there is in httpd.conf. In general, a special file is created in each directory, in which all these things can be prescribed, it is called .htaccess. Well, then, I think, go on your own.
1) Options -Indexes in .htaccess
2) Empty index.html (index.php or what you have configured) in the / images / directory
3) Next time, before scribbling another question, try at least a little to use the search, this topic is already the fifteenth time, as a carbon copy ...
Source: https://ru.stackoverflow.com/questions/193763/
All Articles