Results 1 to 10 of 14
Hybrid View
-
9th Jul 2011, 03:01 PM #1Respected Member
You probably are using ngnix.
Try this:
valid_referers blocked www.mydomain.com mydomain.com;
if ($invalid_referer) {
rewrite ^/wp-content/uploads.*\.(gif|jpg|jpeg|png)$ http://www.mydomain.com/wp-content/banners/Banner3.jpg last
}
if(!-e){
rewrite ^(.*)$ /index.php last
}
location ~* (\.jpg|\.png|\.css)$ {
valid_referers blocked mydomain.com www.mydomain.com;
if ($invalid_referer) {
return 444;
}
}Lock Down Reviewed by Lock Down on . No image hotlinking - can't get it to work Hi, i want to block image hotlinking from my website. I found instructions on how to do it and i edited the .htaccess file but it's not working. Here is what i added: RewriteEngine on RewriteCond %{HTTP_REFERER} !^$ RewriteCond %{HTTP_REFERER} !^http(s)?://(www\.)?mywebsite.com RewriteRule \.(jpg|jpeg|png|gif)$ http://external_image_to_show_instead I tried to open a support ticket to KnownSRV but all i got was: :facepalm: Rating: 5
Sponsored Links
Thread Information
Users Browsing this Thread
There are currently 1 users browsing this thread. (0 members and 1 guests)
Similar Threads
-
Looking For Image Host Allows Adult & Hotlinking
By DJboutit in forum File Host DiscussionReplies: 13Last Post: 26th Sep 2011, 02:07 PM -
reliable image host with hotlinking
By incognito in forum Webmaster DiscussionReplies: 4Last Post: 8th Sep 2010, 12:05 PM -
Best free image host (hotlinking allowed)
By shadeslader in forum General DiscussionReplies: 20Last Post: 19th Apr 2010, 11:44 PM -
stop image hijacking (anti-hotlinking) Lighttpd
By jessepure in forum Server ManagementReplies: 4Last Post: 16th Jan 2010, 12:19 PM -
Prevent Image Hotlinking
By Whoo in forum Webmaster ResourcesReplies: 6Last Post: 23rd Sep 2008, 05:14 PM
themaManager - edit and manage...
Version 4.22 released. Open older version (or...