📜  .htaccess 热链接预防技术 - 无论代码示例

📅  最后修改于: 2022-03-11 15:00:13.193000             🧑  作者: Mango

代码示例1
RewriteEngine on
RewriteCond %{HTTP_REFERER} !^$
RewriteCond %{HTTP_REFERER} !^http://(www\.)?yourdomain.com/.*$ [NC]
RewriteRule \.(gif|jpg|css)$ - [F]