Jan
15
2008

htaccessのサンプル

Print
0 votes
Blog - Joomla! CMS
Written by:Joomler! 10607 hits

Joomlaのadministratorフォルダとxmlrpcフォルダに.htaccessでアクセス制限をかけましょう。

以下は、サンプル。
※指定したIPアドレスなら認証をスルーします。ご注意を。

<Files ~ "^\.ht">
Order allow,deny
Deny from all
Satisfy All
</Files>
#example:"/var/html/administrator/.htpasswd"
AuthUserFile "/your htpasswd file path"
AuthGroupFile /dev/null
#example:"Watashi Dakeyo"
AuthName "Only Administrator"
AuthType Basic
Require valid-user
Satisfy Any
Order Deny,Allow
Deny from all
Allow from 123.123.123.123
Allow from 345.345.345.345

htpasswdファイルは、ここで:.htaccess Tools

TagsWatashi Dakeyo,htaccess,AuthGroupFile,administrator,AuthName,your htpasswd file path,null#example,AuthType BasicRequire valid-userSatisfy AnyOrder,administratorフォルダ,Joomla,AuthUserFile,AllowDeny from allAllow from 123.123.123.123Allow,htpasswd,Only Administrator,Order allow,IPアドレス,denyDeny from allSatisfy All,htpasswdファイル,htaccess Tools,xmlrpcフォルダ
 

JContentPlus for Joomla!1.5 powered by Joomler!.net