.htaccess & Hotlinking


D

Dark Angel

Ok when it comes to .htaccess I am as about us knowlagable as zombie on a
good day.

But there is this script:


RewriteCond %{HTTP_REFERER} !^$
RewriteCond %{HTTP_REFERER} !^http://(www\.)?stateofmind.me.uk(/)?.*$
[NC]
RewriteRule .*\.(zip|ZIP)$ http://www.stateofmind.me.uk/php/images/logo.png
[R,NC]

Which I used in the past for images and it seems to work, but for some
resion its not working for the zip files.

Its been a while since I used this for preventing images from been
hotlinked.

But I want to know if this is going to be usless when it comes to downloads
from another site that is not in the list of dominas?


--
Best Regards
Dark Angel

http://www.stateofmind.me.uk - My Home Page
http://www.bluefox.myby.co.uk - My Home Page on Blueyonder
http://www.shrine2aeris.co.uk - The Shrine to Aeris

,---...... _____________
z Z ((-----. `-----,_____ (
z ,`\ `-., `----, \....( `,
,..-----__.' `\ \____ `/ '\
/^---` ~ ```` __ \ / ) `(^\( |
---------------((/```-------\_ _( `, `,
`--, (_ / /
,--\( '--'`` /`
/`,.--`^',__.---'`
\(Ts
 
Ad

Advertisements

P

Phillip Hudson

I had exactly the same problem as you, .htaccess works for pictures, flash
files and I think it did with movies, but it doesn't work with exes and zip
files.

I tried loads of scripts but I couldn't get any of them to prevent exe files
from being hotlinked.

If you ever manage it, could you post the info here, I'd be greateful to see
it.

Phillip
 
Ad

Advertisements

D

Dark Angel

For some resion it dose not work with images now and I am beging to wornder
if my host as updated there server :(

This is starting to do my nut in.

--
Best Regards
Dark Angel

http://www.stateofmind.me.uk - My Home Page
http://www.bluefox.myby.co.uk - My Home Page on Blueyonder
http://www.shrine2aeris.co.uk - The Shrine to Aeris

,---...... _____________
z Z ((-----. `-----,_____ (
z ,`\ `-., `----, \....( `,
,..-----__.' `\ \____ `/ '\
/^---` ~ ```` __ \ / ) `(^\( |
---------------((/```-------\_ _( `, `,
`--, (_ / /
,--\( '--'`` /`
/`,.--`^',__.---'`
\(Ts
Phillip Hudson said:
I had exactly the same problem as you, .htaccess works for pictures, flash
files and I think it did with movies, but it doesn't work with exes and zip
files.

I tried loads of scripts but I couldn't get any of them to prevent exe files
from being hotlinked.

If you ever manage it, could you post the info here, I'd be greateful to see
it.

Phillip

Dark Angel said:
Ok when it comes to .htaccess I am as about us knowlagable as zombie on a
good day.

But there is this script:


RewriteCond %{HTTP_REFERER} !^$
RewriteCond %{HTTP_REFERER} !^http://(www\.)?stateofmind.me.uk(/)?.*$
[NC]
RewriteRule .*\.(zip|ZIP)$ http://www.stateofmind.me.uk/php/images/logo.png
[R,NC]

Which I used in the past for images and it seems to work, but for some
resion its not working for the zip files.

Its been a while since I used this for preventing images from been
hotlinked.

But I want to know if this is going to be usless when it comes to downloads
from another site that is not in the list of dominas?


--
Best Regards
Dark Angel

http://www.stateofmind.me.uk - My Home Page
http://www.bluefox.myby.co.uk - My Home Page on Blueyonder
http://www.shrine2aeris.co.uk - The Shrine to Aeris

,---...... _____________
z Z ((-----. `-----,_____ (
z ,`\ `-., `----, \....( `,
,..-----__.' `\ \____ `/ '\
/^---` ~ ```` __ \ / ) `(^\( |
---------------((/```-------\_ _( `, `,
`--, (_ / /
,--\( '--'`` /`
/`,.--`^',__.---'`
\(Ts
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads


Top