When leeching is detected, no static resources are returned. (For example, a.jpg is output normally only when referenced by pages on mydomain.com and baidu.com, but cannot be directly accessed or referenced on other domain names) Static resources are not returned when leeching is detected. (For example, a.jpg is output normally only when referenced by pages on mydomain.com and baidu.com, but cannot be directly accessed or referenced on other domain names)
Reply content:
When leeching is detected, no static resources are returned. (For example, a.jpg is output normally only when referenced by pages on mydomain.com and baidu.com, but cannot be directly accessed or referenced on other domain names)
RewriteEngine onRewriteCond % {HTTP_REFERER }! ^ $ [NC] RewriteCond % {HTTP_REFERER }! Mydomain.com [NC] RewriteCond % {HTTP_REFERER }! Baidu.com [NC] RewriteRule. (png | jpg) $/bad.gif [R, NC, L]
For example, you can refer to the usage instructions of htaccess. the request for these two domain names (pngw.jpg) will be redirected to bad.gif.