ciber Posted December 11, 2008 Share Posted December 11, 2008 hi, I have an issue with my htaccess, i redirect all images to a php file which displays it (also used to block hotlinks) but the problem is when a site hotlinks with <img> on their site it doesnt block the request is there anyways to go around this issue, or a solution to fix it? Link to comment https://forums.phpfreaks.com/topic/136548-solved-issue-with-htaccess-redirecting/ Share on other sites More sharing options...
trq Posted December 11, 2008 Share Posted December 11, 2008 Can we see your attempts at hotlink prevention? Link to comment https://forums.phpfreaks.com/topic/136548-solved-issue-with-htaccess-redirecting/#findComment-712744 Share on other sites More sharing options...
ciber Posted December 11, 2008 Author Share Posted December 11, 2008 RewriteCond %{HTTP_REFERER} !^http(s)?://(www\.)?mysite.com [NC] RewriteRule ^/?(.*)$ "http\:\/\/www\.mysite\.com\/images\.php\?url\=images\/$1" [R=301,L] *replaced actual url with mysite* Link to comment https://forums.phpfreaks.com/topic/136548-solved-issue-with-htaccess-redirecting/#findComment-712748 Share on other sites More sharing options...
ciber Posted December 11, 2008 Author Share Posted December 11, 2008 found the issue - problem solved Link to comment https://forums.phpfreaks.com/topic/136548-solved-issue-with-htaccess-redirecting/#findComment-712909 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.