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