Thursday, June 12th, 2008 at 10:02 am by onlyring
Category: Web
发现网站没有禁用file list,简单修改了一下.htaccess文件
里面的参数选项有很多都不懂,好在现在网上什么工具都有,
找到了一个图形化界面设置.htaccess的网站:http://www.htaccesseditor.com
用它生成了下面这个例子:
1 2 3 4 5 6 7 8 9 | <Files ~ "^.(htaccess|htpasswd)$"> deny from all </Files> Options -Indexes RewriteEngine on RewriteCond %{HTTP_HOST} ^(onlyring\.net)(:80)? [NC] RewriteRule ^(.*) http://www.onlyring.net/$1 [R=301,L] DirectoryIndex www.onlyring.net order deny,allow |
几个不错的关于.htaccess使用的网站:
http://www.javascriptkit.com/howto/htaccess.shtml
http://www.askapache.com/
Popularity: 41% [?]
Tags: .htaccess
Loading...