1. Assume that the host domain name of the linked image is: www.test.com2, modify the httpd.confSetenvifnocase Referer "^http://www.test.com/" local_ref=1
Order Allow,deny
Allow from Env=local_ref
This simple application can
Title:python3 climbed goddess picture, cracked hotlinking problemDate:2018-04-22 08:26:00Tags: [Python3, beauty, picture grabbing, crawler, hotlinking]Comments:true PrefaceIn fact, there is no essential difference between grabbing a picture and
Objective: Before finishing the Nginx data, the inside talked about the security chain configuration. At the time I felt a little fresh (or ignorant), after all, I seldom touched the concept or the noun. In general, it is a measure to prevent
first, the principleTo implement the anti-theft chain, we must first understand the implementation principle of hotlinking, mentioned the implementation principle of the anti-theft chain has to start from the HTTP protocol, in the HTTP protocol,
Tag: Represents the Send HTTP protocol amp Information ONS resource task SharpFirst, the principleTo implement the anti-theft chain, we must first understand the implementation principle of hotlinking, mentioned the implementation principle of the
When the browser to send a request to the Web server, usually bring referer, tell the server I was from which page chain, the server can get some information for processing, but this referer can be forged, the following look at an example, we will
First, the principle
To implement the anti-theft chain, we must first understand the implementation principle of hotlinking, mentioned the implementation principle of the anti-theft chain has to start from the HTTP protocol, in the HTTP protocol,
1. Anti-hotlinking
Websites that steal your content and don't want to store images on their own are shameless. You can use the following configuration to place someone else to steal your image:
1 Rewritebase/
2 Rewritecond%{http_referer}!^$
3
Because Nginx does not support. htaccess, it is not feasible to prevent it directly from this aspect, we have to fix it by modifying the configuration file.First, we find the need for anti-theft chain of the domain name conf file,
What is HTTP RefererIn short, the HTTP Referer is part of the header, and when the browser sends the request to the Web server, it usually takes referer to tell the server which page link I took from, and the server can get some information for
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.