Block direct access to .inc files not working

dust2 nginx-forum at
Mon Feb 22 01:52:33 UTC 2016

You should block access in php file.

For example:
You define using defined ( 'ACCESS'... in any file you want direct access
and put the line below to every php files:
defined ( 'ACCESS' ) or die ( 'Restricted Access' );

Posted at Nginx Forum:,264663,264694#msg-264694

More information about the nginx mailing list