Jump to content

How to prevent direct reach ?


Rommeo

Recommended Posts

I have my template files and some functions in my server which are available for direct reach.

like ;

my "index.php" file includes "loginpage.php" form which is ok when I enter www.site.com/index.php

 

but also when I enter to www.site.com/loginpage.php it works and shows me just login page. So  this is what I dont want. How can I prevent to reach the files directly like this, I want them to work just for other pages of my website, not for directly seeing.

 

By the way can this problem also be solved by hosting settings or mod_rewrite ?

Link to comment
https://forums.phpfreaks.com/topic/220836-how-to-prevent-direct-reach/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.