Ask a php source page security question-php Tutorial

Source: Internet
Author: User
Ask a php source page security question www.1.com/a.php fill in the information page
Www.1.com/ B .php save data page
B. php use a HTTP-REFERER to determine whether the source page is a. php
Does this play a certain security role?


Reply to discussion (solution)

Yes

You can also use session or add a formkey to the hidden domain for unique identification. There are many ways you can do that, but it is hard to say that when you encounter a simulated commit.

Yes, but use? Not big, because? Can the header be modeled? .
So please do well? Device ???? It is necessary.

This can only prevent the gentleman from the villain.

Session or generate a token... verify token.

Www.1.com

A unique sessionid is generated for the same domain name.
Judge by sessionid

Thank you!

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.