Reputation: 1697
I have this file structure .
index.php
includes
functions.php
in the index.php
file i call functions.php
use ajax.i want to block access to functions.php
from all except from index.php
.if someone know directory name of functions.php
and want to access to this file the error occur .I want to do this with .htaccess
file.
Upvotes: 0
Views: 71
Reputation: 2707
I think the best way to do it is to:
I wouldn't rely on referral URL or anything less secure.
Upvotes: 2