加拿大华人论坛 美国华人新闻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.
·加拿大新闻 "她是华人,开保时捷,有钱"!多伦多华人女子惨
·加拿大新闻 奔驰GLC EV慕尼黑秀,能否与国产新能源一较高下
·加拿大新闻 卑诗省长罕见站队博励治:终结临时外劳计划!年轻人失业率爆
·加拿大新闻 BC高速公路竟然逆行 严重车祸2人死亡
·加拿大新闻 对抗关税加拿大开始撒钱:预计魁北克铝业将获“数亿元”关税
·中文新闻 英国母亲恳求伴侣跌倒并在去土耳其旅行中撞到他的头后支付
·中文新闻 影响1中1的健康问题可能会大大增加痴呆症的风险,专家发现