process - How to safely link to data processing pages in PHP -


Explain the title: For example, link the flag to any YouTube video as "Inappropriate". It is basically a link on a page that processes the request (i.e., the person who clicked a logged-in user, what is the ID of the flagged video) etc. If everything goes well then the video is flagged and the user is given the correct output.

My question is, what prevents the user from accessing that processing file with the URL, and flagging, say, all videos on YouTube automatically? You can not create a session with PHP if the user clicks on a link and does not want to include JS, then I'm only looking for a good PP-solution solution, to implement the data Someone found the correct page on the process page.

Can you recommend a way to do this, maybe another GET variable may be passing. If you want you can use a YouTube example.

Thanks

If you want to do something, make sure they are expected Coming from the page, you might have an additional GET variable (beyond the video ID only), which is for an encryption string of video ID and an existing date time and a few good masers.

On the received page, you can check to make sure they have a session and are logged in, and if they are decrypting the GET variable, make sure the data valid is valid (last 10 minutes ) And the ID matches the unencrypted main one.

You do not want to send the ID of the person receiving it to GET, because it is easily manipulated clients, then it is trusting session variables.

You can also take advantage of the variable, but I do not think I trust it.


Comments

Popular posts from this blog

oracle - The fastest way to check if some records in a database table? -

php - multilevel menu with multilevel array -

jQuery UI: Datepicker month format -