php navigation validation
<p>How to check if the user has entered the page by clicking on the button and not from copy pasting the URL ?</p>

<p>For example, if a user has clicked on Register I want him/her to go to that page only by clicking the Register button and not by copy pasting the link.
Also, is it a good practice to give the page name on the address bar or should I have to hide the page. If I am hiding the page will I be able to do that ?</p>

<p>For example, if localhost/projname/register.php. I don't want people to see the register or login or about or anything on the address bar except localhost/projname.</p>
