Blocking all IP's except for australia, canada, and the U.S.?

What IP ranges do I need to block to block everyone except those in the title? Also, how do I block them on a Redhat 7.3 server with Cpanel? This stuff goes into the httpd.conf file, correct? And if so, how do I block them? Thank you!

 

 

 

 

Top