Refer and anti-theft chain

Source: Internet
Author: User

<title>Refer and anti-theft chain</title> Refer and anti-theft chain
Valid_referers None | Blocked | Server_names | String ...;
none no refer request header The "Referer" field is missing in the request header;blocked The refer request header was removed the "Referer" field is present in the request header, but its value had been deleted by a firew    All or proxy server; Such values is strings that does not start with "http://" or "https://"; Server_names contains any domain name the "Referer" requ EST header field contains one of the server names;arbitrary string arbitrary string defines a server name and an optional URI Prefix. A server name can has A "*" at the beginning or end. During the checking, the server ' s port in the ' Referer ' field is ignored;regular expression Regular expressions the first symbol SH Ould be a "~". It should is noted that an expression would be matched against the text starting after the "http:/" or "https://". 
Example:    valid_referers None blocked Server_names                   *.example.com example.* www.example.org/galleries/                   ~\ . google\.;
Location ~* \. (gif|jpg|jpeg|png|bmp|swf|flv) $ {    Valid_referers none blocked www.xxx.com *.xxx.com;    if ($invalid _referer) {        rewrite ^/(. *) http://www.xxx.com/blocked.html;    }}

Refer and anti-theft chain

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.