开发者

allow/deny external request htaccess

开发者 https://www.devze.com 2023-01-17 01:18 出处:网络
I want to block Flash/SWF uploaded by my users from calling other domains(unle开发者_运维问答ss approved).

I want to block Flash/SWF uploaded by my users from calling other domains(unle开发者_运维问答ss approved).

I only want to block only a few domains in which I think is malicious.


# List the domains here, put [NC, OR] at the end of
# each domain rule except the last one.
RewriteCond %{HTTP_REFERER} example\.com [NC, OR]
RewriteCond %{HTTP_REFERER} example\.invalid [NC, OR]
RewriteCond %{HTTP_REFERER} example\.org
RewriteRule .*\.swf http://localhost [L,R=301]
0

精彩评论

暂无评论...
验证码 换一张
取 消