birdland Posted November 13, 2008 Share Posted November 13, 2008 Hello to all. This is my issue: I created several directories with pictures in one domain. In another domain i created links pointing to my picture´s folders. I want to only allow access to those folders if the person comes from the links i mentioned. I don´t want type-in access to those folders. I tried some hotlink protection with .htaccess, but they don´t protect from type-in. Any suggestions? Thanks a lot guys. Quote Link to comment https://forums.phpfreaks.com/topic/132573-preventing-type-in-access-to-url/ Share on other sites More sharing options...
trq Posted November 13, 2008 Share Posted November 13, 2008 I tried some hotlink protection with .htaccess, but they don´t protect from type-in. Can we see? Quote Link to comment https://forums.phpfreaks.com/topic/132573-preventing-type-in-access-to-url/#findComment-689339 Share on other sites More sharing options...
birdland Posted November 13, 2008 Author Share Posted November 13, 2008 What do you mean Thorpe? Quote Link to comment https://forums.phpfreaks.com/topic/132573-preventing-type-in-access-to-url/#findComment-689351 Share on other sites More sharing options...
trq Posted November 13, 2008 Share Posted November 13, 2008 Can we see what you tried? Quote Link to comment https://forums.phpfreaks.com/topic/132573-preventing-type-in-access-to-url/#findComment-689359 Share on other sites More sharing options...
birdland Posted November 13, 2008 Author Share Posted November 13, 2008 OK I tried this code for hotlink protection: RewriteEngine on RewriteCond %{HTTP_REFERER} !^$ RewriteCond %{HTTP_REFERER} !^http(s)?://(www\.)?mydomain.com [NC] RewriteRule \.(jpg)$ - [NC,F,L] Quote Link to comment https://forums.phpfreaks.com/topic/132573-preventing-type-in-access-to-url/#findComment-689366 Share on other sites More sharing options...
corbin Posted November 13, 2008 Share Posted November 13, 2008 RewriteEngine on RewriteCond %{HTTP_REFERER} !^$ RewriteCond %{HTTP_REFERER} !^http(s)?://(www\.)?mydomain.com [NC] RewriteCond %{HTTP_REFERER} !^http(s)?://(www\.)?myotherdomain.com [NC] RewriteRule \.(jpg)$ - [NC,F,L] Whoa! Quote Link to comment https://forums.phpfreaks.com/topic/132573-preventing-type-in-access-to-url/#findComment-689804 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.