Tag Archive for 'symfony'

symfonyアプリケーションのアクセス元を制限する

11月 7th, 2008 by key

自動生成されたエントリポイント(って言えばいいのか? アプリが起動するPHP)に書かれていたのでメモ。ここで制限かけられるのは楽かも。

// this check prevents access to debug front conrollers that are deployed by accident to production servers.
// feel free to remove this, extend it or make something more sophisticated.
if (!in_array(@$_SERVER['REMOTE_ADDR'], array('127.0.0.1', '::1')))
{
  die('You are not allowed to access this file. Check '.basename(__FILE__).' for more information.');
}

配列の中に許可するIPアドレスを書き並べていけばOK。

タグ: , ,

特定のページでSSLを強制するsfSslRequirementPlugin

10月 7th, 2008 by key

個人情報の表示・編集といった特定のページでSSLを強制したい場合、sfSslRequirementPluginを使うと便利。

Continue reading ‘特定のページでSSLを強制するsfSslRequirementPlugin’

タグ: , ,

PHP Framework Fight!に参加

5月 5th, 2008 by key

このあいだ%ethnaで話していたところ、フレームワークでいろいろ比較してみたいよねー、なんて話が持ち上がりました。簡単な題材を元に、様々なフレームワークではどういう実装になるのか比較しましょう、という話。

Ajax Frameworks / Toolkits / Libraries
Continue reading ‘PHP Framework Fight!に参加’

タグ: , ,

symfony勉強会に参加してきました

4月 12th, 2008 by key

株式会社ディノさんで開催された第一回symfony勉強会に参加してきました。

Continue reading ’symfony勉強会に参加してきました’

タグ: ,