Try to block the hotlinking

ISAPI_Rewrite is Apache mod_rewrite compatible URL rewriter for Microsoft IIS
User avatar
Posts: 16
Joined: 22 Apr 2015, 18:41

Try to block the hotlinking

08 Mar 2016, 19:08

Hi,

We are trying to use ISAPI_Rewrite 3.0 to block the hotlinking. The code below works fine in Chrome

RewriteCond %{HTTP:Origin} http(s)?://xxx\.domain\.com$ [NC]
RewriteRule \.(woff|eot|ttf)$ - [NC,L]
RewriteCond %{HTTP_REFERER} !. [NC, OR]
RewriteCond %{HTTP_REFERER} !^http(s)?://xxx\.domain\.com [NC]
RewriteRule \.(woff|eot|ttf)$ - [F,NC,L]

But not for IE.

Can you help us to modify the code, so it can work in both of the browsers?

Thank you and regards!

Yeming

Return to ISAPI_Rewrite 3.0

Who is online

Users browsing this forum: No registered users and 21 guests