<IfModule mod_rewrite.c>
RewriteEngine on
RewriteCond %{HTTP_REFERER} !^$
#---------------if your are business because i get your logo website---------------------------#
RewriteCond %{HTTP_REFERER} !^https?://([^.]+\.)?exemple.gtld [NC]
#---------------CDN---------------------------#
RewriteCond %{HTTP_REFERER} !^https?://([^.]+\.)?cloudflare.com [NC]
#------------------search engine------------------------#
RewriteCond %{HTTP_REFERER} !^https?://([^.]+\.)?yandex.ru [NC]
RewriteCond %{HTTP_REFERER} !^https?://([^.]+\.)?yandex.com [NC]
RewriteCond %{HTTP_REFERER} !^https?://([^.]+\.)?yahoo.com [NC]
RewriteCond %{HTTP_REFERER} !^https?://([^.]+\.)?bing.com [NC]
RewriteCond %{HTTP_REFERER} !^https?://([^.]+\.)?baidu.com [NC]
#--------------Social networks----------------------------#
RewriteCond %{HTTP_REFERER} !^https?://([^.]+\.)?facebook.com [NC]
RewriteCond %{HTTP_REFERER} !^https?://([^.]+\.)?twitter.com [NC]
RewriteCond %{HTTP_REFERER} !^https?://([^.]+\.)?linkedin.com [NC]
RewriteCond %{HTTP_REFERER} !^https?://([^.]+\.)?viadeo.com [NC]
RewriteCond %{HTTP_REFERER} !^https?://([^.]+\.)?delicious.com [NC]
RewriteCond %{HTTP_REFERER} !^https?://([^.]+\.)?stumbledupon.com [NC]
RewriteCond %{HTTP_REFERER} !^https?://([^.]+\.)?pinterest.com [NC]
RewriteCond %{HTTP_REFERER} !^https?://([^.]+\.)?tumblr.com [NC]
RewriteCond %{HTTP_REFERER} !^https?://([^.]+\.)?foursquare.com [NC]
RewriteCond %{HTTP_REFERER} !^https?://([^.]+\.)?tumblr.com [NC]
#-----------------Radio online-------------------------#
RewriteCond %{HTTP_REFERER} !^https?://([^.]+\.)?tunein.com [NC]
RewriteCond %{HTTP_REFERER} !^https?://([^.]+\.)?shoutcast.com [NC]
RewriteCond %{HTTP_REFERER} !search\?q=cache [NC]
RewriteCond %{HTTP_REFERER} !google\.
RewriteRule \.(gif|jpe?g?|png|bmp|avi|mp4|flv|pls|m3u|asx|xspf|qtl)$ http://www.yourdomainname.tld/blocked.jpg [NC,R,L]
</IfModule>