dose Posted October 4, 2010 Share Posted October 4, 2010 Is there a way that i can stop hotlinking from a specific subdomain on my site?? I have mysite.com then serving images from sub.mysite.com, nobody but my domain should be able to use these images in the sub domain.. Quote Link to comment https://forums.phpfreaks.com/topic/215105-hotlinking/ Share on other sites More sharing options...
trq Posted October 4, 2010 Share Posted October 4, 2010 Something like.... RewriteEngine on RewriteCond %{HTTP_REFERER} !domain\.com [NC] RewriteRule \.(jpe?g|gif|png)$ - [F,NC] Quote Link to comment https://forums.phpfreaks.com/topic/215105-hotlinking/#findComment-1118812 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.