htaccess allow access to one PHP file
snippet in htaccess

htaccess allow access to one PHP file

user6527

Order deny,allow
Deny from all

<Files ~ "\.(xml|css|jpe?g|png|gif|js|pdf)$">
  Allow from all
</Files>

<Files ~ "baz\.php$">
  Allow from all
</Files>