htaccess question:
Is this the proper format for blocking hotlinking by domain?
sogclub being the domain that is hotlinking
xxx being my (i wish) hehe domain
RewriteEngine on
RewriteCond %{HTTP_REFERER} !^
http://(www\.)?sogclub.com(/)?.*$ [NC]
RewriteRule .*\.(gif|jpg|jpeg|bmp)$
http://xxx.com/ [R,NC]
Also, can you insert ip in place of domain name with this format?
Thanks
ex:
RewriteEngine on
RewriteCond %{HTTP_REFERER} !^
http://(www\.)?65.125.235.178.com(/)?.*$ [NC]
RewriteRule .*\.(gif|jpg|jpeg|bmp)$
http://xxx.com/ [R,NC]