Skip to content
WJunction - Webmaster Forum

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

Status
Not open for further replies.
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.

About the author

I
Member · Joined
22
Messages
1
Reactions
3
Points

Advertise on WJunction

Reach 1000's of webmasters, hosts & affiliates. Banner & sponsored-thread slots available.

Contact us
Back
Top Bottom