Let me explain the title: Take the "flag as inappropriate" link on any youtube video as an example. That's basically a link to a page that processes the request (such as, is the person who clicked it a logged-in user, what's the id of the video flagged, etc). If everything goes well, the video is flagged and a right output is given to the user.
My question is, what prevents the user from accessing that processing file from the url, and flagging, say, all videos on youtube automatically? You can't create a session with php IF the user clicks a link, and not wanting to involve JS, I'm looking for a good php-only solution, to ONLY process the data IF someone got to the process page through the right page.
Can you suggest a way to do that, maybe passing another GET variable. You can use the Youtube example if you like.
thanks