php - What is the best way to implement strong security standards for $_GET id's? -
I want the strongest security measures for people changing IDs for comments, blogs, inboxes etc. ...
Any suggestions? Confirming the data you received is a great idea, if you are expecting points, make sure Do that you get points.
if (isset ($ _GET ['id']) & amp; amp; and amp; ctype_digit ($ _gET ['id']) {$ id = $ _GET ['id '];} And {$ id = 0;}
If your concern is changing the URL to see things like people, such as requesting an image 44, If you wanted to show, you have got a few options:
- Ensure that the user has the proper permission to use the item.Include various tests on the page.
- URA to make the item disqualified Do not use sequential numbers, use random numbers or hash.
Comments
Post a Comment