Welcome! Log In Create A New Profile

Advanced

Protect folder from running php and html

Posted by ASTRAPI 
Protect folder from running php and html
January 21, 2015 03:54PM
Hi

I am using this to disallow php running on a folder:


location ~^(/uploads/).*(\.php)$ {
deny all;
}


but how can i disallow both php and html to run on this folder?

Or is it possible to allow only images to run from this folder and how?

Thanks
Re: Protect folder from running php and html
January 26, 2015 10:36AM
Anyone please?
Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 200
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready