C # code
Dim Oxmlhttp as MSXML2. XMLHTTP30 = New MSXML2. XMLHTTP30 ()
Or
MSXML2. XMLHTTP30 oxmlhttp = new MSXML2. XMLHTTP30 ();
Oxmlhttp.open (.....)
Oxmlhttp.setrequestheader (.....)
Oxmlhttp.send (..
Javascript
JavaScript code
Xmlhttp.setrequestheader ("Referer", "Http://URL");/??? Oh ~ fake ~
JS does not support ^_^
The principle is that sock constructs HTTP headers to SendData. Other languages, like Perl, you know,
At present, the simpler way to defend against forgery Referer is to use the verification Code (session).
Now there are some commercial companies that can use anti-theft chain software, such as Uudog,linkgate,virtualwall, are the DLLs that are developed to be applied to IIS.
Some use cookies to verify, thread control, some can randomly generate file names and do URL rewrite. Some methods can indeed achieve a good result.
However, while, outsmart, these tricks after all, there is a way to crack.
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.