I'm attempting to block the web site to become seen as not exist from certain region. Is possible?

I understand we are able to just put a die() along with a blank page is going to be proven, but it is possible to way to really make it seen such as this domain doesn't exist?

You should use the geoip mod for apache ( http://www.maxmind.com/app/mod_geoip ). Mod_rewrite rules may then determine how to deal with the page.

RewriteEngine on
RewriteRule ^(.*)$ http://www.america.com$1 [F]

The F prohibits page access

without having accessibility server configurations, especially on website hosting services, you should use the .htaccess file


Without having accessibility DNS server, you can include .htaccess rule to prohibit people from specific ipaddresses. Following are a handful of sample .htaccess rules

order allow,deny
deny from 123.456.789.012     #block the visitors from the specific ipaddress 123.456.789.012
deny from 123.456.789.        #blocks the visitors from all ip within the range 123.456.789.xxx (i.e. 123.456.789.000 – 123.456.789.255)
deny from 123.456.            #blocks the visitors from all ip within the range 123.456.xxx.xxx
deny from 123.                #blocks the visitors from all ip within the range 123.xxx.xxx.xxx
allow from all                #allow from all other.

if (getenv(HTTP_X_FORWARDED_FOR)) {
    $pipaddress = getenv(HTTP_X_FORWARDED_FOR);
    $ipaddress = getenv(REMOTE_ADDR);
echo "Your Proxy IPaddress is : ".$pipaddress. "(via $ipaddress)" ;
} else {
    $ipaddress = getenv(REMOTE_ADDR);
    echo "Your IP address is : $ipaddress";

This code u may use to obtain ip of customer...

To identify region you will need some free api..Try this..

This Api can also be used..

The 2nd the first is really simple to use..

<A HREF="http://www.hostip.info">
 <IMG SRC="http://api.hostip.info/flag.php?ip=" ALT="IP Address Lookup">

No, unless of course you will find the DNS server for your domain beneath your control. That you simply usually don't for domain names like domain.tld, you are able to only adjust this content in line with the clients ip - for instance you can easily serve a clear page while you recommended. But it's still easy to query the domain with tools like nslookup.