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

How to crack PHP anti-hotlink pictures? Example code

WBOY
Release: 2016-07-25 09:11:59
Original
870 people have browsed it

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



source:php.cn
Statement of this Website
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
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template