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:
This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.