• Howdy! Welcome to our community of more than 130.000 members devoted to web hosting. This is a great place to get special offers from web hosts and post your own requests or ads. To start posting sign up here. Cheers! /Peo, FreeWebSpace.net
managed wordpress hosting

how do i block a domain via htaccess?

jason

New Member
i want to block one domain via htaccess, how would i do this? i tried looking up info but just found stuff on block extentions and ip numbers.
 
Assuming you have use of mod_rewrite which you should do:

Code:
RewriteEngine on 
Options +FollowSymlinks 
RewriteCond %{HTTP_REFERER} domain\.com 
RewriteRule .* - [F]
 
Back
Top