|
HTTP,MySQL,google,Apache,PHP,SEO,百度,FTP,Linux,域名注册,Server,浏览器,开源,淘宝,免费软件,知识产权,中国搜索,爬虫,搜索引擎,FTP Jail,vsFTPD,qihoobot,BadBot,Ports,Network,Remove Pass-phase,SSL,Installation,缓存,Cache
| 阅读上一个主题 :: 阅读下一个主题 |
| 留言 |
|
How to disable directory browsing using .htaccess
|
|
| |
|
发布人: Mrs LA
发布于: 2008/05/30, 9:18 pm
|
|
|
How to disable directory browsing using .htaccess - Apache Web Server
Apache 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 .htaccess
Disable 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 now
Disable 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 now
Disable 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 now
Once 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.
|
_________________ 支持洛杉矶华人,点评洛杉矶华人商家
|
|
|
返回页首
|
|
 |
|
热门标签: HTTP(8), MySQL(8), google(6), Apache(5), PHP(4), SEO(4), 百度(3), FTP(2), Linux(2), 域名注册(2), Server(2), 浏览器(1), 开源(1), 淘宝(1), 免费软件(1), 知识产权(1), 中国搜索(1), 爬虫(1), 搜索引擎(1), FTP Jail(1), vsFTPD(1), qihoobot(1), BadBot(1), Ports(1), Network(1), Remove Pass-phase(1), SSL(1), Installation(1), 缓存(1), Cache(1)
|
相关搜索: directory(2), 网站 index of directory aparch(1), htaccess disable list(1), disable(1), disable directory apache using .htaccess(1), Options +Indexes(1), htaccess Options +Indexes(1), using htaccess disable browse file(1), .htaccess Options(1), htaccess (1), apache directory browsing(1), options indexes .htaccess(1), disable virtual directory browsing with .htaccess(1), no index .htaccess(1)
|
|