Blocking visitors according to country

Posted on 2012-03-26
Last Modified: 2012-04-05

I'm trying to direct users to antoher site or block them completly if they are trying to access my site from outside the UK.  I see this on sites like amazon or itunes, where they know from which country you are accessing their site.  

Can anyone help me out on this?

Question by:anthonytr
  • 2
LVL 30

Expert Comment

ID: 37765090
you can use thier ip address

Author Comment

ID: 37765095
LVL 30

Accepted Solution

IanTh earned 500 total points
ID: 37765099

Featured Post

Windows Server 2016: All you need to know

Learn about Hyper-V features that increase functionality and usability of Microsoft Windows Server 2016. Also, throughout this eBook, you’ll find some basic PowerShell examples that will help you leverage the scripts in your environments!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
I starting with php 12 137
Issues installing SSL certificate into Apache Tomcat 3 100
Question to locate the problem 18 127
PHP: Insert Data into MySQL 5 55
Introduction In this tutorial, I'll explain how to create an animated progress meter in a wireframe prototype developed using Axure RP 7.0 - a leading prototyping tool for designing web sites and software. (For more information about Axure and gett…
Styling your websites can become very complex. Here I'll show how SASS can help you better organize, maintain and reuse your CSS code.
The purpose of this video is to demonstrate how to Import and export files in WordPress. This will be demonstrated using a Windows 8 PC. Go to your WordPress login page. This will look like the following: : Click on Too…
The viewer will learn how to create a basic form using some HTML5 and PHP for later processing. Set up your basic HTML file. Open your form tag and set the method and action attributes.: (CODE) Set up your first few inputs one for the name and …

808 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question