This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| RewriteEngine on | |
| RewriteCond %{HTTP_REFERER} !^$ | |
| RewriteCond %{HTTP_REFERER} !^http(s)?://(www\.)?evemilano.com [NC] | |
| RewriteRule \.(jpg|jpeg|png|gif)$ - [NC,F,L] |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| RewriteEngine On | |
| RewriteCond %{REQUEST_FILENAME} -f | |
| RewriteCond %{REQUEST_URI} !/images/alternative-image.jpg$ | |
| RewriteRule \.(jpg|gif|png)$ - [NC,C] | |
| RewriteCond %{HTTP_REFERER} bilderr\.com [NC,OR] | |
| RewriteCond %{HTTP_REFERER} pictures-images\.com [NC,OR] | |
| RewriteCond %{HTTP_REFERER} freeimages-de\.bloggum\.com [NC,OR] | |
| RewriteCond %{HTTP_REFERER} zaggla\.com [NC] | |
| RewriteRule . /images/alternative-image.jpg [T=image/jpg,L] |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| location ~ .(gif|png|jpe?g)$ { | |
| valid_referers none blocked .ilmiosito.com; | |
| if ($invalid_referer) { | |
| return 403; | |
| } | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # è possibile definire una cartella da bloccare | |
| # location = /immagini/vietato_rubare.png | |
| # oppure i tipi di file | |
| location ~ \.(gif|png|jpg|jpeg|JPG|GIF|JPEG|PNG)$ { | |
| valid_referers none blocked ilmiosito.com *.ilmiosito.com; | |
| if ($invalid_referer) { | |
| rewrite \.(gif|png|jpg|jpeg|JPG|GIF|JPEG|PNG)$ http://www.ilmiosito.com/immagini/vietato_rubare.PENG redirect; | |
| # alternativa | |
| # rewrite ^(.*)$ http://ilmiosito.com/immagini/vietato_rubare.png last; | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <!--?php phpinfo(); ?--> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| RewriteEngine On | |
| RewriteCond %{HTTP_HOST} ^www.olddomain.com$ [OR] | |
| RewriteCond %{HTTP_HOST} ^olddomain.com$ | |
| RewriteCond %{HTTP_USER_AGENT} Googlebot [OR] | |
| RewriteCond %{HTTP_USER_AGENT} msnbot [OR] | |
| RewriteCond %{HTTP_USER_AGENT} Slurp | |
| RewriteRule ^(.*)$ http://bcd.com/$1 [L,R=301] |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Options +FollowSymLinks -MultiViews -indexes | |
| RewriteEngine On | |
| RewriteBase / | |
| #Aggiungere .php per accedere al file, senza essere redirezionato | |
| RewriteCond %{REQUEST_FILENAME}.php -f | |
| RewriteCond %{REQUEST_URI} !/$ | |
| RewriteRule (.*) $1.php [L] |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Options +FollowSymLinks -MultiViews -indexes | |
| RewriteEngine On | |
| RewriteBase / | |
| #Rimuovere index | |
| RewriteRule (.*)/index$ $1/ [R=302] | |
| #Rimuovere lo slash / se non è una directory | |
| RewriteCond %{REQUEST_FILENAME} !-d | |
| RewriteCond %{REQUEST_URI} /$ | |
| RewriteRule (.*)/ $1 [R=301,L] |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Options +FollowSymLinks -MultiViews -indexes | |
| RewriteEngine On | |
| RewriteBase / | |
| #Rimuovere .php; usare THE_REQUEST per prevenire loop infiniti | |
| RewriteCond %{THE_REQUEST} ^GET\ (.*)\.php\ HTTP | |
| RewriteRule (.*)\.php$ $1 [L,R=301] |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Options +FollowSymLinks -MultiViews -indexes | |
| RewriteEngine On | |
| RewriteBase / | |
| #Rimuovere index | |
| RewriteCond %{THE_REQUEST} /index(\.php)?[\s?/] [NC] | |
| RewriteRule ^(.*?)index(/|$) /$1 [L,R=301,NC,NE] |