【問題】請教.htaccess設定防外連該如何設定例外子目錄?



贊助商連結


aipub
2008-02-25, 12:20 AM
一般我們在設定防外連會在主目錄設定如此..

SetEnvIfNoCase Referer "^http://url\.com/" ref=1
SetEnvIfNoCase Referer "^http://ip\.com/" ref=1

<FilesMatch "\.(副檔名|副檔名)$">
Order allow,deny
Allow from env=ref
Allow from 127.0.0.1
</FilesMatch>

如果我在主目錄這樣設定..
那麼如果要設定某個子目錄下是不受上面約束的,那讓如何設定呢?
謝謝...