Dragen Posted April 28, 2007 Share Posted April 28, 2007 Hi, I'm trying to sort out an ant-hotlinking thing on my site.. this is my code: RewriteEngine on RewriteCond %{HTTP_REFERER} !^$ RewriteCond %{HTTP_REFERER} !^http://(www\.)?gimppro.co.uk/.*$ [NC] RewriteRule \.(gif|jpg|js|css)$ - [F] I literally just copied it from a tutorial, as I have very little htaccess knowledge. What I'm wanting to do is to allow a set list of sites to hotlink, instead of just mine.. I've tried: RewriteEngine on RewriteCond %{HTTP_REFERER} !^$ RewriteCond %{HTTP_REFERER} !^http://(www\.)?gimppro.co.uk/.*$ [NC,OR] RewriteCond %{HTTP_REFERER} !^http://(www\.)?mydomain.co.uk/.*$ [NC] RewriteRule \.(gif|jpg|js|css)$ - [F] but it doesn't seem to work.. any ideas?? also, am I able to set it so only a specific directory or file on a site can hotlink? for example.. only: gimppro.co.uk/downloads/ or gimppro.co.uk/index.php just some thoughts... Quote Link to comment Share on other sites More sharing options...
Dragen Posted April 29, 2007 Author Share Posted April 29, 2007 anyone? Quote Link to comment Share on other sites More sharing options...
Dragen Posted April 30, 2007 Author Share Posted April 30, 2007 I guess not..? Quote Link to comment Share on other sites More sharing options...
Dragen Posted May 29, 2007 Author Share Posted May 29, 2007 can anyone help? Quote Link to comment 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.