SetEnvIFNoCase Referer test.com link_ok
<FilesMatch "\.(gif|jpg|png|GIF|JPG|PNG)$">
Order Allow,deny
#deny from all
allow from env=link_ok
</FilesMatch>
Order Allow,deny#deny from allallow from env=link_okOrder Allow,deny#deny from allallow from env=link_okOrder Allow,deny#deny from allallow from env=link_ok
SetEnvIFNoCase Referer test.com link_ok
<FilesMatch "\.(gif|jpg|png|GIF|JPG|PNG)$">
Order Allow,deny
#deny from all
allow from env=link_ok
</FilesMatch>