我需要阻止訪問我的網站中的特定網址。但我不確定如何去理解htaccess的錯綜複雜情況。 ^^無論如何阻止訪問特定的URL,例如通過htaccess?
我需要阻止訪問這些類型的URL的訪問,例如。
- http://mydomain.com/katherine-blouse-on-fire
- http://mydomain.com/antique-for-preservation
- http://mydomain.com/?type=extended&name=stackoverflow
我當前的htaccess代碼
DirectoryIndex index.html index.php
<IfModule mod_rewrite.c>
RewriteEngine on
RewriteBase/
RewriteCond %{REQUEST_FILENAME} !\.(png|gif|ico|swf|jpe?g|js|css)$
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . index.php?sef_rewrite=1 [L,QSA]
</IfModule>
<Files 403.shtml>
order allow,deny
allow from all
</Files>
deny from xx.xx.xx.xx
deny from xx.xx.xx.xx
我應該進入的htaccess來阻止這些訪問?並以什麼順序?之前我目前的代碼或之後?