加拿大华人论坛 美国华人新闻How to disable directory browsing using .htaccess
在加拿大
How to disable directory browsing using .htaccess - Apache Web ServerApache web server allow directory browsing by default. It’s always good to disable directory browsing in security aspect. To disable directory browsing in apache web server you need to edit the httpd.conf or .htaccessDisable directory browsing using .htaccess:- * Open your .htacces file * Look for Options Indexes * If Options Indexes exists modify it to Option -Indexes or else add Options -Indexes as a new line * The directory browsing feature should be disable by nowDisable directory browsing using httpd.conf:- * Open your httpd.conf, normally it’s located at /usr/local/apache/conf or /etc/httpd.conf * Go to your own Virtual Host settings and look for “Options Indexes” * Change the Indexes to -Indexes if Option Indexes exists or else add the Options -Indexes line * Restart your apache web server. * The directory browsing feature should be disable by nowDisable directory browsing in CPanel Share Hosting enviroment:- * Login to your CPanel * Click on Index Manager * Directory will be list down. Click on the directory name which you want to disable the directory browsing * Select No Index and click Save * The directory browsing feature should be disable by nowOnce you disable directory browsing, visitor will not able to browse your directory by accessing the directory directly (if there is no index.html file). This will protect your files from exposing to the public.
·加拿大新闻 收到这条短信别删!加拿大Rogers/Fido/Chatr用户有望领到一笔钱!
·加拿大新闻 别克GL8焕新登场,配炫酷大屏与舒适座椅,动力强劲
·加拿大新闻 胡锡进:美国最铁杆的盟友,现在却被美国百般羞辱
·加拿大新闻 TD预测:加拿大房市明年迎拐点房价全线看涨
·加拿大新闻 又一家电集团造车,打造移动客厅,夏普首款车有没有看头?
·中文新闻 旋风“阿尔弗雷德”过后,数千名昆士兰人在黑暗中度过了一周
·中文新闻 足球明星因对阵萨摩亚的疯狂尝试而走红








