Skip to content

Instantly share code, notes, and snippets.

@nojimage
Created January 26, 2011 08:19
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save nojimage/796413 to your computer and use it in GitHub Desktop.
Save nojimage/796413 to your computer and use it in GitHub Desktop.
hide .ctp files, for BaserCMS
<FilesMatch "\.ctp$">
Order allow,deny
Deny from all
</FilesMatch>
@nojimage
Copy link
Author

.htaccessを解するのであれば、これをthemedディレクトリに置けば外部からはアクセスできなくなるのでOKかなと

@nojimage
Copy link
Author

app/webroot/themedへ.htaccessとして設置します。
利用にはAllowOverrrideでLimitが許可、またはAllとされていることが条件となります。
権限がない場合は、Internal Server Errorとなりthemed配下の画像などを含むファイル全てが閲覧不可となります。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment