| |
| |
|
|
|
|
| |
|
| |
|
| :: |
| Author |
Message |
opitanga
Joined: 25 Jul 2008 Posts: 8
|
Posted: Thu Aug 21, 2008 3:50 am Post subject: Stop Hotlinking |
|
|
Hello there,
I am trying to stop hotlinking with this:
| Code: |
<IfModule mod_rewrite.c>
RewriteEngine on
RewriteCond %{HTTP_REFERER} !^$
RewriteCond %{HTTP_REFERER} !^http://(www\.)?YOURSITE\.COM/.*$ [NC]
RewriteRule .*\.(gif|jpg)$ http://www.YOURSITE.COM/images/stolen.gif [R,NC,L]
</ifModule> |
The only problem is that http has the www and https has NO www
So the stolen.gif appears instead of the regular images in the my own https area.
Any help to rewrite the above to avoid this?
Thanks |
|
|
| Back to top |
|
 |
|
 |
dcz Administrateur - Site Admin

Joined: 28 Apr 2006 Posts: 15242
|
|
| Back to top |
|
 |
|
| Navigation |
Similar Topics |
|
|
|
|
|
|
|
| |
|
|
|
|
| |
|
|
|
|
| |