Update index_dev.php to work from localhost only

Symfony2 has this check for app_dev.php, so I think will be good to have it also.