← Desenvolvimento

Ajuda a proteger imagens

Lida 6360 vezes

Offline

Multani 
Membro
Mensagens 1092 Gostos 0
Troféus totais: 28
Trófeus: (Ver todos)
Super Combination Combination Topic Starter Poll Voter Level 5 Level 4 Level 3 Level 2 Level 1 1000 Posts

Imaginem que eu tenho um site onde alojo imagens. Agora imaginem que alguém posta essas imagens num fórum. Imaginem também que eu não gosto especialmente desse fórum, e quero que as imagens não apareçam lá, mas continuem a aparecer em qualquer outro site. E imaginem que não satisfeito com isto, quero que no lugar das imagens, apareça uma imagem à minha escolha.

Eu sei que posso fazer isto com o haccess , mas quero saber se alguém sabe fazer exactamente o que eu preciso, não me apetece ir aprender a programar isto.
Offline

fpware 
Fundador
Mensagens 15318 Gostos 7
Troféus totais: 38
Trófeus: (Ver todos)
Linux User Mobile User Level 6 Super Combination Combination Topic Starter 10 Poll Votes Poll Voter Poll Starter Level 5

:lol: Acho que sei do que estás a falar...

Encontrei isto, vê lá se ajuda:

Código: [Seleccione]
RewriteEngine on

RewriteCond %{HTTP_REFERER} ^http://[^.]+\.th3b4r.com/.*$ [NC]
RewriteRule \.(gif|jpg|jpeg)$ http://rodzilla.netfirms.com/thebar.gif [R,L]

RewriteCond %{HTTP_REFERER} ^$ [OR]
RewriteCond %{HTTP_REFERER} !^http://[^.]+\.seriouscommunity\.com/.*$ [NC]
RewriteCond %{HTTP_REFERER} !^http://[^.]+\.seriouszone\.com/.*$ [NC]
RewriteCond %{HTTP_REFERER} !^http://[^.]+\.seriousengine\.com/.*$ [NC]
RewriteCond %{HTTP_REFERER} !^http://[^.]+\.serioussam\.org/.*$ [NC]
RewriteCond %{HTTP_REFERER} !^http://seriouscommunity\.com/.*$ [NC]
RewriteCond %{HTTP_REFERER} !^http://seriouszone\.com/.*$ [NC]
RewriteCond %{HTTP_REFERER} !^http://seriousengine\.com/.*$ [NC]
RewriteCond %{HTTP_REFERER} !^http://serioussam\.org/.*$ [NC]
RewriteCond %{HTTP_REFERER} !^http://64\.191\.4\.64*$ [NC]
RewriteCond %{HTTP_REFERER} !^http://66\.96\.228\.157*$ [NC]
RewriteRule \.(gif|jpg|jpeg)$ http://bellsouthpwp.net/j/r/jrodzik/seriouslylink.gif [R,L]


http://www.support-forums.com/archive/index.php/t-352.html
Offline

fpware 
Fundador
Mensagens 15318 Gostos 7
Troféus totais: 38
Trófeus: (Ver todos)
Linux User Mobile User Level 6 Super Combination Combination Topic Starter 10 Poll Votes Poll Voter Poll Starter Level 5

Offline

Tartaruga 
Membro
Mensagens 2908 Gostos 0
Troféus totais: 29
Trófeus: (Ver todos)
Super Combination Combination Topic Starter 10 Poll Votes Poll Voter Poll Starter Level 5 Level 4 Level 3 Level 2

:mrgreen:  :mrgreen: hihihi... opa depois posta por cá a imagem que puseres por lá ok? só pa gente se rir um bocado!  :mrgreen:
Offline

fpware 
Fundador
Mensagens 15318 Gostos 7
Troféus totais: 38
Trófeus: (Ver todos)
Linux User Mobile User Level 6 Super Combination Combination Topic Starter 10 Poll Votes Poll Voter Poll Starter Level 5

:lol: Estou mesmo a ver a ideia do Multani!  :mrgreen:
Offline

Multani 
Membro
Mensagens 1092 Gostos 0
Troféus totais: 28
Trófeus: (Ver todos)
Super Combination Combination Topic Starter Poll Voter Level 5 Level 4 Level 3 Level 2 Level 1 1000 Posts

Ok já tenho material para me entreter, vou ver no que dá. A ideia é velha, mas chegou a hora de a por em pratica  8)
Offline

fpware 
Fundador
Mensagens 15318 Gostos 7
Troféus totais: 38
Trófeus: (Ver todos)
Linux User Mobile User Level 6 Super Combination Combination Topic Starter 10 Poll Votes Poll Voter Poll Starter Level 5

Boa sorte, depois mostra!  :D
Offline

Multani 
Membro
Mensagens 1092 Gostos 0
Troféus totais: 28
Trófeus: (Ver todos)
Super Combination Combination Topic Starter Poll Voter Level 5 Level 4 Level 3 Level 2 Level 1 1000 Posts

Parece-me que as opções que eles dão servem para dizer em que sites é que eu permito que as imagens apareçam, e em todos os outros é alterada. Mas eu quero o mesmo que o gajo que abriu esse tópico queria... eu quero dizer que num site NÃO podem aparecer, mas em qualquer outro é permitido sem ter que os listar a todos :) Parece que vou ter que procurar mais.
Offline

fpware 
Fundador
Mensagens 15318 Gostos 7
Troféus totais: 38
Trófeus: (Ver todos)
Linux User Mobile User Level 6 Super Combination Combination Topic Starter 10 Poll Votes Poll Voter Poll Starter Level 5

Viste este:

http://www.support-forums.com/archive/index.php/t-352.html  :?:

Se não conseguires, eu amanhã procuro-te isso com mais calma ;)
Offline

Multani 
Membro
Mensagens 1092 Gostos 0
Troféus totais: 28
Trófeus: (Ver todos)
Super Combination Combination Topic Starter Poll Voter Level 5 Level 4 Level 3 Level 2 Level 1 1000 Posts

Eheheh já consegui, agora vou fazer a imagem :D
Offline

fpware 
Fundador
Mensagens 15318 Gostos 7
Troféus totais: 38
Trófeus: (Ver todos)
Linux User Mobile User Level 6 Super Combination Combination Topic Starter 10 Poll Votes Poll Voter Poll Starter Level 5

Porreiro!  :D  :mrgreen:
Offline

Multani 
Membro
Mensagens 1092 Gostos 0
Troféus totais: 28
Trófeus: (Ver todos)
Super Combination Combination Topic Starter Poll Voter Level 5 Level 4 Level 3 Level 2 Level 1 1000 Posts

A imagem é esta porque eu nem quero usar coisas más :D

http://www.alojarfotos.com/hotlink.gif

E pode dizer-se que está agora espalhada por muitos tópicos de um certo fórum fotocopia do SNB  8)
Offline

Multani 
Membro
Mensagens 1092 Gostos 0
Troféus totais: 28
Trófeus: (Ver todos)
Super Combination Combination Topic Starter Poll Voter Level 5 Level 4 Level 3 Level 2 Level 1 1000 Posts

LOOOLL vi agora que até nos avatares dos users aparece isto, e bem legivel :D

Tenho vontade de me tirar o chapéu!  :mrgreen:
Offline

fpware 
Fundador
Mensagens 15318 Gostos 7
Troféus totais: 38
Trófeus: (Ver todos)
Linux User Mobile User Level 6 Super Combination Combination Topic Starter 10 Poll Votes Poll Voter Poll Starter Level 5

mostra!  :mrgreen:
Offline

fpware 
Fundador
Mensagens 15318 Gostos 7
Troféus totais: 38
Trófeus: (Ver todos)
Linux User Mobile User Level 6 Super Combination Combination Topic Starter 10 Poll Votes Poll Voter Poll Starter Level 5

Genial Multani! Os meus parabéns!  :mrgreen: