Restrict access for certain files in browser - but allow in website

Status
Not open for further replies.

igordr

Member
22
2012
1
0
Hello,

I want to disable possabilety to someone request files from my site, via browser - HTTP, for example:
If someone see my source code, and find file like this:

PHP:
http://mywebsite.com/captions/temp2/JustyLuck.srt

Then try to enter it in browser, and download it. To see some error, or message like 'Don't Steal'.

But, that file, should work in my flash player on mywebsite.com url.
So, denny access for everyone except my own website, this is caption of video.

I have tried

Code:
<Files ~ "\.srt$">
Order allow,deny
Deny from all
Allow from env=local_referal
</Files>

Didn't work.

Thanks.
 
3 comments
Status
Not open for further replies.
Back
Top