Results 1 to 4 of 4
-
4th Aug 2012, 11:40 AM #1OPMember
Restrict access for certain files in browser - but allow in website
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 Code:http://mywebsite.com/captions/temp2/JustyLuck.srt
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>
Thanks.igordr Reviewed by igordr on . Restrict access for certain files in browser - but allow in website 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: 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. Rating: 5
-
5th Aug 2012, 03:45 PM #2Respected Member
Here you go. Will allow playing in player but no direct access via url..
RewriteEngine on
RewriteCond %{HTTP_REFERER} !^http://(www\.)?yoursite [NC]
RewriteCond %{HTTP_REFERER} !^http://(www\.)?yoursite.*$ [NC]
RewriteRule \.(srt)$ - [F]
-
5th Aug 2012, 06:23 PM #3OPMember
Thanks Lock Down.
It's working. But, will it work in all browsers, fine?
-
5th Aug 2012, 11:51 PM #4Respected Member
You are welcome and the answer should be yes. Worked in opera & FF for me.
Sponsored Links
Thread Information
Users Browsing this Thread
There are currently 1 users browsing this thread. (0 members and 1 guests)
Similar Threads
-
Check your website in 100 Browser
By Nice_one_120 in forum Useful SitesReplies: 11Last Post: 17th Sep 2012, 05:20 PM -
clear browser cache Button on website
By DevilLnC in forum Web Development AreaReplies: 11Last Post: 29th Apr 2012, 05:59 PM -
unable to access my website...
By haseeb221093 in forum Server ManagementReplies: 0Last Post: 28th Aug 2010, 05:54 AM -
Website does not load in browser but does in proxy
By StarTech in forum Technical Help Desk SupportReplies: 2Last Post: 31st Mar 2010, 07:36 AM -
Restrict...
By GeeZus in forum Feedback and SuggestionsReplies: 19Last Post: 11th Jun 2009, 06:49 PM
themaManager - edit and manage...
Version 4.04 released. Open older version (or...