Don't want my site to be accessible from certain countries
I am in the process of dealing with a lot of credit card fraud orginating from Egypt. This made me think that there should be a way to block my web site (by IP address) from visitors from that country. Does anybody know if it is possible to do? It shouldn't be so hard. Do hosting companies provide this kind of service to their customers?
You should find how typical Egyptian IPs look like. Then, if you have CPanel, you may block the entire country by enterering the first numbers while leaving all others blank. For example,if typical Egyptian Ip begins with 1234, you just deny everything that begins with 1234.
However, this will not defend you againts dynamic IP or proxy servers. I have one visitor who bypasses all IP bans because he uses software thatallows him to stay invisible and proxy server.
I know how to tell a country by an IP address. I have been selling intangible merchandise online for the past seven years, so I know quite a bit about all that. Maybe I didn't ask my question well, but the only thing that I want to do now is display "The page cannot be displayed" error when somebody tries to access my web site from Egypt. Is it possible to do?
Yes, you would need to block all known egyptian IP's via APF or .htaccess. There's a few sites out there that give you this information, but only a handful that gives you the netblocks to quickly block them. Do a search on Google or on WHT.
Douglas Hazard - Certifiable Sports Junkie and Sports Community Enthusiast
Host of Two Cents Radio - Follow @TwoCentsRadio on Twitter (@BearlyDoug on Twitter)
If you're receiving such a large number of fraud orders, you might want to look into some sort of phone verification methods for your order process / payment method.
There are quite few automated phone verification options out there and many are pretty affordable as well. Try googling it.
Best of luck!
█•CirtexHosting•Providing Affordable and Quality Web Hosting & Reseller Hosting since 2003 █•LINUX based cPANEL/WHM Shared and Reseller Web Hosting with Fantastico █•HostV VPS•Premium Virtual Private Servers & Dedicated Servers powered by cPanel/WHM █•We transfer your sites over quickly!•I eat penguins for breakfast ...