How can I block website traffic from African countries? I recently started using AdWords to advertise one of my websites and I started getting registered users from Africa. In my AdWords campaign I specifically limited adds to show in US and Canada but for some reason I get some hits from Nigeria, Libya, Senegal, etc.
Well, if for some reason they visit your website via your Ads on AdWords, then blocking them on your site won't do you any good, since you still pay for the click they make on the ad. Look in Google Analytics and check if those African users came to your website via AdSense, Direct hit or other referrals. If it's AdWords/AdSense, then there is something wrong with your AdWords campaign Setup. If they came to your website via direct hit, normal googling (aka. organic) or other websites, then I would just say leave them and welcome them, no reason to block them if you dont have to pay for their visits. About blocking. Either via PHP or .htaccess Depending on your website, the PHP script might be complicated to implement. .htaccess can only block IPs, so you simply get a list of all Nigerian IPs. Use my signature link and search for "htaccess block country".