Stop a user directly accesing a page
Posted
by James Jeffery
on Stack Overflow
See other posts from Stack Overflow
or by James Jeffery
Published on 2010-06-08T17:59:45Z
Indexed on
2010/06/08
18:12 UTC
Read the original article
Hit count: 117
php
I have a page called create.php. It receives post variables and sets up accounts. I don't want that page to be accessible by a user. What's the conventional way of achieving this?
I think I remember reading something about including a page with a CONSTANT. If the CONSTANT is not present the page has been accessed directly. I think Wordpress also do it.
© Stack Overflow or respective owner