hot link protection for animated gif

Started on the old forum in October 2011 · view the original in the archive · old links redirect here

#animated-gif-hot-link

3 replies · 494 views · started 15 years ago · 1 min read

3 participants
athora Developer · 53 posts #1

Hello,

I want to protect my animated .gif format images from hot linking.

So i add these to .htaccess as usual.

RewriteEngine on RewriteCond %{HTTP_REFERER} !^$ RewriteCond %{HTTP_REFERER} !^http(s)?://(www.)?free.info [NC] RewriteRule .(gif)$ http://free.info/index.php [NC,R,L]

Its, working on normal .gif images, But not with animated .gif images.

Any advice ??????

Thank you!

arnage Lead · 811 posts #4

For a few extensions.

RewriteEngine on
RewriteCond %{HTTP_REFERER} !^$
RewriteCond %{HTTP_REFERER} !^http://(www.)?server.tld/.*$ [NC]
RewriteRule \.(gif|jpe?g|png|mp3)$ - [F]
<!DOCTYPE html PUBLIC "-//***WAPFORUM**.**RS***

Write your reply now; next you create a free account (or sign in) and it is posted right away. Sign in to reply.

Similar topics

Keyboard shortcuts

g f
Go to forums
g h
Go to your feed
g m
Go to messages
r
Reply (in a topic)
/
Search
j
Next post
k
Previous post
?
This list
Ctrl/⌘ + Enter
Send what you are writing
Ctrl/⌘ + B / I
Bold / italic while writing
Esc
Close