Yii - protected - (403 Forbidden Error)

572 Views Asked by At

Is it possible to change the configuration of Yii, to:

1- make Yii and the database accessible from outside the folder 'protected'

2- send data from outside the folder 'protected' to files inside 'protected'

Or is there any other solution to do this ?

thank you for any help.

1

There are 1 best solutions below

2
On BEST ANSWER

It is possible since the protected folder is only protected by a .htaccess file. If you eliminate the "defensive rules" and have the right directory/file permissions, the protected folder can be easily made accessible from outside.

However I strongly recommend not to do this, because direct access to the protected folder (as it name suggests) should be made inaccessible for standard users.