PHP counterfeit HTTP-REFERER comes php code
// PHP (provided that curl is installed): $ ch = curl_init (); curl_setopt ($ ch, CURLOPT_URL, "http://blog.qita.in/xxx.asp"); curl_setopt ($ ch, CURLOPT_REFERER, "http://blog.qita.in/"); curl_exec ($ ch); curl_close ($ ch); // PHP (do not install curl with sock) $ server = 'Blog. qita. in '; $ host = 'Blog. qita. in '; $ target ='/xxx. asp '; $ referer = 'http: // blog. qita. in/'; // Referer $ port = 80; $ fp = fsockopen ($ server, $ port, $ errno, $ errstr, 30); if (! $ Fp) {echo "$ errstr ($ errno)
\ N ";} else {$ out =" GET $ target HTTP/1.1 \ r \ n "; $ out. = "Host: $ host \ r \ n"; $ out. = "Cookie: ASPSESSIONIDSQTBQSDA = DFCAPKLBBFICDAFMHNKIGKEG \ r \ n"; $ out. = "Referer: $ referer \ r \ n"; $ out. = "Connection: Close \ r \ n"; fwrite ($ fp, $ out); while (! Feof ($ fp) {echo fgets ($ fp, 128) ;}fclose ($ fp );}