Home >Backend Development >PHP Tutorial >How to crack PHP anti-hotlink pictures? Example code

How to crack PHP anti-hotlink pictures? Example code

WBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWB
WBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOriginal
2016-07-25 09:11:59902browse

Nowadays, many hosts or programs have anti-hotlinking functions, including anti-hotlinking for pictures and downloads.

For example: 1. Use .htaccess to set up anti-hotlinking

  1. RewriteEngine on
  2. RewriteCond %{HTTP_REFERER} !^$
  3. RewriteCond %{HTTP_REFERER} !^http://(www.)?jbxue.com/.*$ [NC]
  4. RewriteRule .(gif| jpg)$ http://bbs.it-home.org/image.gif [R,L]
Copy code



Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn