.htaccess

Order Allow,Deny
Allow from all
Deny from .abcde.com
Deny from 111.122.133.
Deny from 111.122.133.192/26

referer

SetEnvlf Referer "http://hogehoge.com" Ref1
SetEnvlf Referer "http://hogeweb.com" Ref2
Order Deny, Allow
Deny from all
Allow from env=Ref1
Allow from env=Ref2

files match

<FilesMatch "\.(gif|.jpg?g|png)$">
SetEnvlf Referer "http://hogehoge.com" Ref1
Order Deny, Allow
Deny from all
Allow from env=Ref1
</FilesMatch>
SetEnvIf REFERER "sample.com" Ref1
Order Deny,Allow
Deny from all
Allow from env=Ref1

ip

SetEnvIf REFERER "sample.com" Ref1
Order Deny,Allow
Deny from all
Allow from env=Ref1
<Files ~"\.log$">
 Deny from all
</Files>

DOSS