Limiting access to folders in a shared hosting

Can anyone tell me the PHP equivalent of web.config settings (in .NET) that allows you to limit access to files in a specific folder? For example, in a .NET application, you can limit access to files and folders using deny/allow settings in the location tags in the web.config. This setting is individualized for each application, allowing one to set permissions for each application, even in a shared hosting environment. All the examples I've found online about setting such permissions in PHP requires one to have access to the web server before one can set the .htaccess files, which isn't really possible in a shared hosting environment. If the settings will equally work in an IIS shared hosting environment, that would even be very better. Thank you. N.B: In case it's needed, I need users of the application to have access to certain folders/files based on their roles in the application. And I have an IIS shared hosting environment.

Answers


It doesn't; you have to create that in the logic of your application. You can also use .htaccess or set it up via the server.


Need Your Help

create 3D (n:m:k) matrix in matlab using array 2D (i:3)

matlab matrix 3d

I need a 3D matrix in matlab, I have another 2D matrix (7570x3) too,

Backup Agent signature mismatch during restore

android signature uid android-backup-service

[Edit] From all the information I've added it seems likely that this is caused by my app registering itself as a new app under the same UID despite being the same build in the same apk. Any ideas w...