security - Is it good pratice to hide $_GET in URL with .htaccess? -
let me show simple example demonstrate it.
you got url :
www.bowling.com/account.php?id=30&pref=t,s,m&cr=32
then, .htaccess following :
rewriteengine on rewriterule ^your-account/identity/$1/?$ account.php?id=$1&pref=$2&cr=$3 [flag(s) u want]
now, instead of having first url, y'all can guess, got :
www.bowling.com/account.php?identity/30/
the 2 next $_get var invisible in url. security secure or waste of time? what's opinion?
Comments
Post a Comment