Encoding url in php to prevent direct access -


there 3 steps user registration on site , right urls similar to:

http://www.example.com/register.php http://www.example.com/registerstep2.php http://www.example.com/registerstep3.php 

i wondering easy way encode like:

http://www.example.com/w^3434sd343f232gihmsdsdwre232 

the reason trying this, trying ensure users follow steps , don't try 'trick' system directly going registration link 3 example.

this bad bad bad idea. instead of trying hide url through simple obfuscation, check @ top of script see if can proceed.

in other words, each time go page, check see if submitted previous page's info. if haven't, send them back. example:

if ( !functionthatchecksandreturnsbool() ) { header("location http://www.example.com/register.php"); exit; } 

Comments

Popular posts from this blog

JQuery Autocomplete without using label, value, id -

c++ - Accessing inactive union member and undefined behavior? -

JAVA - what is the difference between void and boolean methods? -