Aarvi

Disable directory browsing linux

To disable the directory browsing in account you need to do the below steps

# cd to the directory you want to disable directory browsing

in my case it was

#cd  /home/online/public_html/images

create a new file .htaccess

# vi .htaccess

paste the below code in .htaccess

Options -Indexes

save file and exit

Now directory browsing is disabled

 

Aarvi server solutions Is a Web Hosting Support Company that has built a solid reputation for quality, reliability, and true professional service