It would be easier to do that via .htaccess. Something like:

Code:
order allow,deny
deny from 55.55.55.
deny from 44.44.
allow from all