jojo's blog--快樂憂傷都與你同在
          為夢想而來,為自由而生。 性情若水,風起水興,風息水止,故時而激蕩,時又清平……
          posts - 11,  comments - 30,  trackbacks - 0
          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 Options -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://ubuntuforums.org/archive/index.php/t-234876.html

          posted on 2009-06-09 10:49 Blog of JoJo 閱讀(385) 評論(0)  編輯  收藏 所屬分類: 每日一記 、Tool 安裝應用

          <2025年6月>
          25262728293031
          1234567
          891011121314
          15161718192021
          22232425262728
          293012345

          常用鏈接

          留言簿(6)

          隨筆檔案

          文章分類

          文章檔案

          新聞分類

          新聞檔案

          相冊

          收藏夾

          搜索

          •  

          最新評論

          閱讀排行榜

          評論排行榜

          主站蜘蛛池模板: 兴安县| 滕州市| 舒兰市| 日照市| 嘉祥县| 阳原县| 锦屏县| 芜湖县| 曲阳县| 文山县| 交口县| 松阳县| 盈江县| 叶城县| 丽水市| 兴国县| 天柱县| 河西区| 陵川县| 商河县| 虹口区| 新余市| 巴南区| 那坡县| 靖西县| 邵东县| 铅山县| 松原市| 北宁市| 阿坝县| 尉氏县| 武强县| 大厂| 洛隆县| 浙江省| 元谋县| 塔河县| 铜梁县| 华池县| 涟水县| 阳新县|