simply add an index.html or an index.php file which can be blank or contain some text or even your site's home page.dungeon keeper wrote:For example, i have made a new folder in htdocs folder called test. I access it with browser via address http://localhost/test/ and the contents of that directory can be seen in browser. How can i disable that?
The contents of a folder can't be seen but anyone who right clicks on any page served up in a browser and then select View Source can see the files contents after it has been parsed by the server, there is not much you can do about that.dungeon keeper wrote:So now the contents cannot be seen, and php scripts cannot be viewed?
Users browsing this forum: No registered users and 90 guests