preventing direct access to a php page, only access if redirected

Posted by Ahmet vardar on Stack Overflow See other posts from Stack Overflow or by Ahmet vardar
Published on 2010-04-06T20:08:19Z Indexed on 2010/04/06 20:13 UTC
Read the original article Hit count: 278

Filed under:

Hi,

I want to make my php page just can be accessed by another page redirect, and want to prevent my user directly access to it.

i mean, lets say i have a page called "main.php" and other php file that i want to prevent direct access called "noaccess.php".

I want to make noaccess.php file accessible if i only redirect from main.php

any suggestion?

Thnx

© Stack Overflow or respective owner

Related posts about php