Having trouble with blocking IP's using .htaccess

I am having trouble with blocking IP's via .htaccess
on apache, I have a small shared account

when i am editing the .htaccess file via ssh and pico do I just add the following to deny certian IP addressses



deny from 209.23.123.110
deny from 209.23.123.9


or do I have to go like this;

<Limit GET>
order deny,allow
deny from 209.23.123.110
deny from 209.23.123.9
</Limit>

I have been editing the .htaccess filr in my public_html directory
do I have to add anything else to the file for this to work? or is it better to use a cgi-wrapper script ( I dont't have a script)

Or do I have to put it somewhrere else?


I have been checking everywhere on the net but most of it is pretaining to setting passwords and denying usernames

Great opportunity to show off you extensive knowledge!

 

 

 

 

Top