You can also use the .htaccess file to restrict from certain ip or domain ranges. Create a file named .htaccess in the directory you want to restrict (your document_root if you want to restrict certain people from getting there at all) and enter something like the following..
<LIMIT GET>
order allow, deny
allow from all
deny from 208.25.212.
deny from 201.24.
etc. etc.
</LIMIT>
All done. Hope that helps!
Chris King