加拿大华人论坛 美国华人新闻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.
·加拿大新闻 “SweetWorld杯”掼蛋邀请赛在温哥华顺利落幕
·加拿大新闻 加国通胀抬头:房租上涨、菜价飙升生活更贵了
·加拿大新闻 卑诗城市就开发案与中国国企对簿公堂胜诉赢得618万元
·加拿大新闻 罢免VS复工令!教育部长陷倒台危机!教师誓言抵抗政府“复工
·加拿大新闻 渥太华出手惩罚两大车企,撤资代价惨重:免关税名额被砍!
·中文新闻 《Strictly》的尼基塔·库兹明 (Nikita Kuzmin) 被拍到亲吻名人搭档安
·中文新闻 SARAH VINE:克劳迪娅·温克曼 (Claudia Winkleman) 和我在 20 多岁的时候








