Php cracking apache, nginx, and iis anti-Leech images

Source: Internet
Author: User
Currently, most websites have anti-Leech protection. apache, nginx, and iis are the most commonly used anti-Leech protection settings. Are these settings not broken? is the answer correct, let's take a look at the method of cracking. A host of its own is generally designed as quot ;... currently, most websites have anti-Leech protection. apache, nginx, and iis are the most commonly used anti-Leech protection settings. Are these settings not broken? is the answer correct, let's take a look at the method of cracking.

You can design anti-Leech protection for your host, including image anti-Leech protection and download anti-Leech protection, for example:

Use. htaccess to set anti-Leech

RewriteEngine onRewriteCond %{HTTP_REFERER} !^$RewriteCond %{HTTP_REFERER} !^http://(www.)?xuexb.com/.*$ [NC]RewriteRule .(gif|jpg)$ http://www.phprm.com /image.gif [R,L]

Set anti-Leech for nginx

location ~* .(gif|jpg|png|swf|flv)$ {    valid_referers none blocked phprm.com;    if ($invalid_referer) {        rewrite ^/ http://phprm.com /234_s.gif;        #return 404;    }}

But how to crack anti-leech? Generally, anti-Leech is used to determine whether the origin is your own domain name. we can use the file_get_contents method built in php to request this image (of course, other backend languages also have similar methods), such:

// GetImg. php? Url = target Image connection

 

Php code snippets:

1. directly load anti-Leech images:

Anti-leech attack

2. read images through php:

Anti-leech attack


Address:

Reprinted at will, but please attach the article address :-)

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.