Ver Mensaje Individual
  #2 (permalink)  
Antiguo 06/06/2018, 01:34
jota2
 
Fecha de Ingreso: diciembre-2003
Mensajes: 474
Antigüedad: 20 años, 4 meses
Puntos: 5
Respuesta: proteger medios subidos a entradas privadas

Lo he conseguido modificando el htaccess para evitar el hotlinking:
RewriteEngine on
# RewriteCond %{HTTP_REFERER} !^$
RewriteCond %{HTTP_REFERER} !^http(s)?://(www\.)?xxx.com[NC]
RewriteCond %{HTTP_REFERER} !^http(s)?://(www\.)?google.com [NC]
RewriteRule \.(jpg|jpeg|png|gif)$ http://xxx.com/logo.jpg [NC,R,L]