PROZONE powered by Tophost
  Home   Forum   Regolamento Help Login Registrati   *
Statistiche
Utenti
Utenti Totali: 1707
Ultimo utente: xal
Statistiche
Posts Totali: 29470
Topics Totali: 3404
Online Oggi: 51
Presenze Massime Online: 559
(23 Luglio 2008, 14:24:28)
Utenti Online
Utenti: 0
Visitatori: 48
Totale: 48
Siti amici
Design & Multimedia

Dire e Fare il blog che ti aiuta

Wordpress
Pagine: [1]
 
Autore Topic: .htaccess hotlinking img e integrazione con WP  (Letto 1039 volte)
amsterdamtour
Utente
***
Posts: 39


.htaccess hotlinking img e integrazione con WP
« il: 27 Aprile 2009, 17:11:37 »

Ciao ragazzi, volevo bloccare l'hotlinking delle immagini dal mio sito e stavo eseguendo le istruzioni qui riportate

http://www.tophost.it/aiuto/cat2/17/32/

E' corretto il codice da inserire nell' .htaccess (vedere neretto) ?

blogolanda
it

Codice:
RewriteEngine On
RewriteCond %{HTTP_REFERER} !^http://(www\.)?blogolanda\.it/ [NC]
RewriteCond %{HTTP_REFERER} !^$
RewriteRule \.(jpe?g|gif|bmp|png)$ - [F]

Inoltre, volevo integrarlo nel codice precedente già presente nel mio .htaccess

Codice:
# BEGIN WordPress
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]
</IfModule>

# END WordPress
<IfModule mod_security.c>
<Files async-upload.php>
SecFilterEngine Off
SecFilterScanPOST Off
</Files>
</IfModule>


E' giusto inserirlo in questo modo (hotlinking alla fine), oppure rischio di creare qualche malfunzionamento ?

Codice:
# BEGIN WordPress
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]
</IfModule>

# END WordPress
<IfModule mod_security.c>
<Files async-upload.php>
SecFilterEngine Off
SecFilterScanPOST Off
</Files>
</IfModule>

RewriteEngine On
RewriteCond %{HTTP_REFERER} !^http://(www\.)?blogolanda\.it/ [NC]
RewriteCond %{HTTP_REFERER} !^$
RewriteRule \.(jpe?g|gif|bmp|png)$ - [F]

Vi ringranzio anticipatamente
Loggato

Pagine: [1]
 
 
Salta a:  

Oggetto Iniziato da Risposte Visto Ultimo Post
Excom down da ore « 1 2 ... 129 130 » Ste_000 1940 177235 Ultimo Post 14 Marzo 2007, 18:19:22
da Gioxx
Script Perl « 1 2 » Guastalla 17 14368 Ultimo Post 6 Dicembre 2006, 22:04:37
da lacellula
Il modulo mi fa arrabbiare! puma512 2 2574 Ultimo Post 8 Febbraio 2009, 23:09:42
da puma512
E' bello essere amati II ...sull'opportunismo del genere umano « 1 2 3 4 » Tophost 54 23068 Ultimo Post 29 Agosto 2007, 13:08:25
da techtechboom
Guida A Mod_rewrite (parte 1) « 1 2 3 4 5 » doGmaI 68 48831 Ultimo Post 14 Ottobre 2009, 16:42:18
da sOoN
Powered by MySQL Powered by PHP Powered by SMF 1.1.8 | SMF © 2006-2008, Simple Machines LLC
Traduzione Italiana a cura di SMItalia

TinyPortal v0.9.8 © Bloc
XHTML 1.0 Valido! CSS Valido!


Ultima visita di Google a questa pagina Ieri alle 20:04:35