加拿大华人论坛 美国华人新闻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.
·加拿大新闻 全新XC70对比全新Q5L,它们之间的差距大不大呢?
·加拿大新闻 雷克萨斯的十字路口:销量增长,光环褪色
·加拿大新闻 林肯品牌新定调,“舒服”开启豪华新篇
·加拿大新闻 加拿大Banff突发雪崩滑雪者被卷下山埋到腰部
·加拿大新闻 中国大降关税但卑诗农渔民心里依然忐忑
·中文新闻 布鲁克林·贝克汉姆 (Brooklyn Beckham) 与佩尔茨 (Peltzes) 一家的有趣
·中文新闻 “事情结束后,他们都松了一口气”:为什么波什不是尼古拉第








