Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 557431
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 13, 20262026-05-13T12:01:32+00:00 2026-05-13T12:01:32+00:00

Let me explain the title: Take the flag as inappropriate link on any youtube

  • 0

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

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-13T12:01:32+00:00Added an answer on May 13, 2026 at 12:01 pm

    If you want to do something like ensure they came from the expected page, you could have a additional GET variable (beyond just the video ID) that’s an encryption of a string concatenation of the video ID and the current datetime and some salt for good mesure.

    On the receiving page you can check to make sure they have a session and are logged in, and if they are decrypt the GET variable. Ensure that the datetime is valid (say last 10 minutes) and the ID matches the main one sent unencrypted.

    You don’t want to send the ID of the person clicking it over GET because that’s easily manipulated client-side, so rely on the session variable for that.

    You can also take advantage of the $_SERVER[‘HTTP_REFERER’]; variable, but I don’t think I’d rely only on that.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Let me explain what I mean in my title. Let's say, that for example
I could barely find a reasonable title that would explain my issue, let alone
Let me explain best with an example. Say you have node class that can
I apologize for vague title so let me explain. Suppose you have a page
That's a hard title, let me explain what I mean, currently I'm programming a
The question title is a bit obscure so let me explain. A requirement that
I know my title is not that descriptive/clear so let me explain. Yesterday I
OK, the title is confusing but let me explain. Let's say that I have
the title might be a little bit confusing, let me explain, ;) I have
The title may have been confusing, but please let me explain: Currently when I

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.