Welcome! Log In Create A New Profile

Advanced

Block direct access to .inc files not working

February 20, 2016 04:07AM
I've a nginx server on CentOS with PHP setup.
I'm trying to block direct access to .inc files

I've added the following to nginx.conf

location ~ /\.inc
{
deny all;
}

& restarted nginx.

But I still able to access .inc files like https://mydomain,com/includes/config.inc

Pls suggest what I may be missing or how else to fix this issue. I Need to block access to all .inc files.

Thanks
Sans
Subject Author Posted

Block direct access to .inc files not working

rsclmumbai February 20, 2016 04:07AM

Re: Block direct access to .inc files not working

dewanggaba February 20, 2016 04:22AM

Re: Block direct access to .inc files not working

rsclmumbai February 21, 2016 01:20AM

Re: Block direct access to .inc files not working

dust2 February 21, 2016 08:52PM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 292
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