I was wondering if I could use php to redirect or to block all ip addresses( that didnt originate in the usa or canada) from my accessing my site or certain features of my site. I not sure if it would be easier to use .htaccess or to code it with php.
thanks carole
It would be easier to use .htaccess. That's (a) what it's for, and (b) means you don't have your web server going to a lot of effort parsing and running PHP scripts and whatnot for nothing.