← Desenvolvimento

Ajuda!!

Lida 750 vezes

Offline

Nuno Freitas 
Membro
Mensagens 1040 Gostos 4
Feedback +3

Troféus totais: 31
Trófeus: (Ver todos)
Level 6 Windows User Super Combination Combination Topic Starter 10 Poll Votes Poll Voter Level 5 Level 4 Level 3

Boas,
estou a tentar bloquear um .swf para que só seja acessível pelo próprio site, como tal utilizei a ferramente mais adequada que é o hotlink mas parece que não está a resultar e fiz todos os procedimentos para tal.
Alguém me consegue dar uma ajuda?

Abraço
Offline

Pedro Lopes 
Beta tester
Mensagens 3568 Gostos 18
Feedback +6

Troféus totais: 32
Trófeus: (Ver todos)
Level 6 Windows User Super Combination Combination Topic Starter 10 Poll Votes Poll Voter Level 5 Level 4 Level 3

No ficheiro .htaccess consegues.

Algo como:

Código: (apache) [Seleccione]
RewriteEngine On
RewriteCond %{HTTP_REFERER} !^http://(.+\.)?site\.com/ [NC]
RewriteCond %{HTTP_REFERER} !^$
RewriteRule .*\.(swf)$ http://outro-site.com/outro-ficheiro-flash.swf [L]