I got a 'friendly' call friday saying that I was getting too many foreign visitors. After 4 months I thought I would avoid this issue but no.
As you may be aware I've been begging for some help on getting a SIMPLE method for detecting foreign visitors on an IIS server with plain old html pages.
Finally got a solution which in the end only took an hour or two of work + 5 hours of pasting the include statement.
1) told my hosting service to let the ASP processor parse .htm pages. 2) downloaded the maxmind geoip.csv database and loaded it in to an Access DB 3) wrote a little asp include file to lookup the visitor IP with a query after doing the calculation to change IP to IP Number provided by Maxmind.
bingo. done! If anyone wants to use this method I'll give them the asp code.