Some summary of Http Referer

Source: Internet
Author: User

The previous understanding of HTTP in Referer is not thorough enough. Recently, take a look at it and record it. 1 Referer can record the source of access, statistics of traffic, can be used for anti-theft chain. 2 Client with JS can not tamper with referer, with some plug-in and something to achieve the purpose of forgery. 3 You can modify the Referer using Fiddler. Select the Fiddler window Rules->customize rules ... In the Customrules.js Notepad window that opens, locate the following location of the static function Onbeforerequest (osession:session) {//Sample Rule:color ASPX Request s in RED//if (Osession.uricontains (". aspx")) {osession["ui-color"] = "RED";}
After this sentence, add the IF (OSession.oRequest.headers.ExistsAndContains ("Referer", "220.170.79.105″)") {OSession.oRequest.headers .   Remove ("Referer"); }4 server-side modification referer, through WebClient, directly set access can achieve the purpose of modification. 5 Other ways to modify Referer. Reference: HTTP://WWW.CNBLOGS.COM/MX3000/ARCHIVE/2007/12/17/1003239.HTML6 use Referer to prevent pictures hotlinking Although referer is not reliable, but to prevent the picture hotlinking is enough, After all, not everyone will modify the client's configuration. (generally only in-station access) Reference: http://blog.csdn.net/21aspnet/article/details/6197314

Some summary of Http Referer

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.