The browser requests An ASPX page in the image format and a page in the IFRAME format. Can it be determined on the server side?

Source: Internet
Author: User
For example, there are two rows in the page. Code:


<IFRAME src = "ABC. aspx"> </iframe>

If both labels request the ABC. ASPX page, can I identify the two types of access on the server? At first, I decided to determine the MIME type of the request, but the results could not be distinguished. The Content-Type of the request is empty, so I don't know how to judge it.

Yes, I made a page ABC. aspx? U = 4 is used to record the score of the user promotion website,
Every time an IP address clicks this link, even if the user successfully promotes it once, the user points plus one.
You can click this promotion link directly or use HTML code to nest it into the page.
The following code is embedded in ad.htm:

In this case, I only need to add my statistics on this ad.htm page. But in fact, my publicity results have not been met, so I need to analyze this situation for processing.
In this case, the server can determine that the request. accepttypes is "*/*", while IFRAME has multiple MIME types.
However, when my statistics page is made into a hyperlink, the user clicks this link (obviously this promotion method is also accepted by us), and the server collects the request. accepttypes is also "*/*", not multiple types
For example, <a href =/ABC. aspx? U = 4> contribution </a>
In this way, there is no way to completely differentiate them.
Summary:
We accept the following promotion methods: Enter the promotion URL directly in the browser; IFRAME nesting; Publish the promotion link in the form of a hyperlink to another place, and visitors click the link to enter
We think that the method of statistics for refreshing is: IMG label call; IFRAME nesting, but the page height and width are set to 0 (this problem has been solved)
What we need to do now is to separate the two types of promotion methods and process them separately. Please help me.
What does "*/*" in request. accepttypes mean?

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.