How to prevent users to change url parameter in PHP?

Posted by Sachin on Stack Overflow See other posts from Stack Overflow or by Sachin
Published on 2013-11-12T09:47:45Z Indexed on 2013/11/12 9:53 UTC
Read the original article Hit count: 163

Filed under:
|
|

I am developing a site where I am sending parameters like ids by url. I have used urlencode and base64encode to encode the parameters.

My problem is that how can I prevent the users or hackers to play with url paramenters Or give access only if the parameter value is exist in database?

I have at least 2 and at most 5 parameter in url so is this feasible to check every parameter is exist in database on every page?

Thanks

© Stack Overflow or respective owner

Related posts about php

Related posts about mysql