SetEnvIF Referer ^$ local_allow
SetEnvIF Referer "ssanweb.com" local_allow
SetEnvIF Referer "(.*\.)?ssanweb.com" local_allow
<FilesMatch "\.(jpg|jpeg|gif|png|exe|zip|rar|gz|mp[0-9]|wmv|avi|mpg)$">
Order deny,allow
allow from env=local_allow
deny from all
</FilesMatch>