How to Hide Website Folder List/ Directory Structure /index of With .htaccess

Hi friends, in the following article I will give you a few tips that friends can do on the web project, especially in the security section. So when a user accesses a particular folder from a URL or a certain part of our website. When the folder does not have an index file or home page, for example: index.php, it will not automatically display the content in the form of a list of the contents of that directory. Instead of displaying the index page instead it displays the folder structure or file as follows. This is very dangerous, because everyone can see what's on our server.

of course we don't want users in general, especially hackers to know the folder structure of the web project they have. therefore we can prevent it or hide the structure not displayed. the way is to make one .htaccess file in the file we fill in Options -Indexes.

Options -Indexes

the command on the htacces means we prevent the folder or the file from being displayed. So if we access the browser we will get Forbidden Notification.



Okay, that's a little tips for friends how to prevent or hide the file structure or folder structure in htaccess files. So hopefully it is useful and thank you. There are a few tips for friends how to prevent or hide the file structure or folder structure in the htaccess file. So hopefully it's useful and thank you.

key:
how to disable /index of with htaccess php, cara menghilangkan menyembuyikan halaman index of di halaman website dengan php htaccess

Previous
Next Post »