.htaccessRewriteEngine onRewriteCond %{HTTP_REFERER} ^ http://127.0"/>
.htaccessRewriteEngine onRewriteCond %{HTTP_REFERER} ^ http://127.0">
画像ホットリンク保護の問題について
テストアドレスは http://127.0.0.2/test.html
<body><img src="./11.png"></body>
<br />RewriteEngine on<br />RewriteCond %{HTTP_REFERER} ^http://127.0.0.2/.*$ [NC]<br />RewriteRule .*\.(gif|jpg|png)$ http://127.0.0.2/22.jpg [R,NC]<br />
<br />RewriteCond %{HTTP_REFERER} !^$ <br />RewriteCond %{HTTP_REFERER} !^http://127\.0\.0\.2/.*$ [NC] <br />RewriteRule \.(gif<br><font color='#FF8000'>------解决方案--------------------</font><br>jpg<br><font color='#FF8000'>------解决方案--------------------</font><br>png)$ http://127.0.0.2/22.jpg [R=301,L] <br />