On Fri, May 16, 2008 at 05:48:10PM +0200, Fabian Lange wrote:
> <?php
> //This prevents accidental access to non production frontends
> if (!in_array($_SERVER['REMOTE_ADDR'], array('127.0.0.1')))
> {
> echo('Your IP '.$_SERVER['REMOTE_ADDR'].' is not in set of allowed IPs.');
> echo('Check '.__FILE__.' For more information. ');
> die();
> }
> ?>
I like this as well and will work for 90% of the people. The
other 10% will be knowledgeable enough to do something different.
I think keeping it in the front controller is also important. This
makes it easy to remove.
Carl
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"symfony developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/symfony-devs?hl=en
-~----------~----~----~----~------~----~------~--~---