Created
January 26, 2011 08:19
-
-
Save nojimage/796413 to your computer and use it in GitHub Desktop.
hide .ctp files, for BaserCMS
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<FilesMatch "\.ctp$"> | |
Order allow,deny | |
Deny from all | |
</FilesMatch> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
app/webroot/themedへ.htaccessとして設置します。
利用にはAllowOverrrideでLimitが許可、またはAllとされていることが条件となります。
権限がない場合は、Internal Server Errorとなりthemed配下の画像などを含むファイル全てが閲覧不可となります。