If you’re
creating quality content on your WordPress site, then the sad truth is
that it’ll probably get stolen sooner or later on.
One way this happen is
when other websites serve your images directly from their URLs on your
website, instead of uploading them to their own servers. In effect, they’re theft
your web hosting bandwidth, and you don’t get any traffic to show for it.
Simply add this code
to your .htaccess file to block hotlinking of images from your
WordPress site.
1
2
3
4
5
6
|
#disable hotlinking
of images with forbidden or custom image option
RewriteEngine on
RewriteCond
%{HTTP_REFERER} !^$
RewriteCond
%{HTTP_REFERER} !^http(s)?://(www\.)?tutpoints.com
[NC]
RewriteCond
%{HTTP_REFERER} !^http(s)?://(www\.)?google.com
[NC]
RewriteRule
\.(jpg|jpeg|png|gif)$ – [NC,F,L]
|
Note: Don’t forget to
change tutpoints.com with your own domain.
You may also want to
check our article showing 4 ways to prevent image theft in WordPress.
several content
scraping websites automatically create posts by stealing your content from
your RSS feed. You can check out our guide on preventing
blog content scraping in WordPress for ways to deal by automated content
theft.
0 Comments