Joaquín L. Robles
Joaquín L. Robles

Reputation: 6494

Zend application without private folder

I have a Zend application hosted in a subdomain zend.example.com, my hosting provider makes a folder "zend" inside the public folder for the domain and this can not be changed, so I can access to my zend applicacion folder contents from the main domain, like example.com/application/Bootstrap.php where the "public" folder for the zend app would be called "zend" in order to comply with the hosting provider, Is there a way (maybe with htaccess) that I can prevent access to the application folder contents? Thanks

Upvotes: 1

Views: 116

Answers (1)

Oussama Jilal
Oussama Jilal

Reputation: 7739

You can do block access to application, library and any other folder that should be private with something like this :

RewriteEngine on
RewriteRule ^(application|library)(/.*)?$ - [F]

Upvotes: 1

Related Questions