![]() |
.htaccess Help
I have files (jpg. mp4, mp3) on one domain that I want to share with another domain, but not have them hotlinked to any other place.
http://jimspics. com/files/testfile.mp3 I want to put .htaccess in http://jimspics. com/files/ To block hotlinks, but allow file to be pulled over to http://truebabes. com/ Thoughts, samples, suggestions? Thanks |
See next post :)
|
And here is a htacess generator for ya :) Click on the Disable Hotlinking tab and generate away :thumbsup
.HTACCESS IP, Referrer, and Hotlink Banning Generator |
I did try that, and couple of others discussed there, but no luck yet.
Thanks |
master domain root:
Code:
RewriteEngine on Code:
RewriteEngine on |
sorry, just seen you have movie files too. I can't remember which domains I have that in place, but will have a look tomorrow if no-one has been able to give you the fix. 1am here and I gotta hit the sack before I drop :)
|
Acording to this site it should work.
.HTACCESS IP, Referrer, and Hotlink Banning Generator But, doesn't. Frustrating. |
Quote:
|
Noticed you're on HG. Did you try this?
What is hot linking? How do I enable and disable hotlink protection? « HostGator.com Support Portal |
back.. ok sorry mate I was tired and not quite with it - now I've got a clearer head, from memory you can't prevent hotlinking movie files unless you do some tech shit that I have zero idea about. The other thing I was thinking of was related to redirecting image hotlinking by google's image search to a specific html page (instead of just showing your hotlink image), rather than preventing hotlinking of movies. Sorry for the confusion.
It can be done, but way above my head, hopefully others can chime in. |
Ah, ok then. Thanks for the help. That answers my main question.
|
Quote:
|
How bout just limiting the entire directory to a referer?
Something like this Use .htaccess to allow access only from a single HTTP referrer |
maybe your .htaccess isnt active, check apache settings
|
Thanks guys. That link is interesting, and going to try that now.
And yes, htaccess is active (its working fine for normal password protected areas and all. Just trying to block linking of .mp4 videos |
Htaccess - THE Ultimate .htaccess
Code:
RewriteCond %{HTTP_REFERER} !^$ This format is right but you will have to set paths and file types -- he missed JPG and jpeg JPEG if necessary? -- Apache is case sensitive if that has something to do with the pathing problem. Also, any space must be escaped %20... The UNIX rule for naming conventions should be followed if you don't want grief (been there done that before). If the access is to be restricted in a certain directory, try putting the .htaccess in that directory. Apache reads the .htaccess in each directory in the path to the file's location when it will GET the file. |
Quote:
i make my urls expire so they cant be shared |
All times are GMT -7. The time now is 07:13 AM. |
Powered by vBulletin® Version 3.8.8
Copyright ©2000 - 2025, vBulletin Solutions, Inc.
©2000-, AI Media Network Inc