Forum Moderators: phranque
Say I get a visitor to my site with the IP 194.74.63.248, how can I determine from that IP that it is a visitor from the UK?
Does ASP have any kind of built-in IP resolver, so that I could find out that 194.74.63.248 = www.fasthosts.co.uk? Then life would be very simple, 'cos I could just check for .uk in any address.
TIA,
Robin
"by changing a setting in the metabase, IIS performs a reverse DNS lookup and returns the host name of the client connecting."
This is lifted from an MS knowledgebase article at [support.microsoft.com...] and I suspect it's close to what you need to know, perhaps if it's not exactly right, it will at least lead you to the correct info. I have no experience with IIS, most of my very limited knowledge was gained here in these forums...
If this doesn't meet your needs, I'll bring your question to our resident MS expert. Let me know...
From what I understand, there are 3rd party components that can be used for resolving IPs, but again, I'm on a shared server and can't install anything, so that idea goes out the window. :-¦
So, can someone give me some pointers towards understanding how I can filter IPs to determine whether they are from the UK or not.
Many thanks, Robin
On IIS, DNS lookups can be enabled for individual sites. IMHO, step one is to ask your host to enable DNS lookups for your site. Step two is consider another host. Particularly if your present host won't allow you to install and run your own scripts. Step three, consider an IP based solution which will likely be a "third party solution," a script.
I am only interested in this IP filtering for the simple reason that I want to present UK visitors with UK ads, and anyone else with others - it doesn't matter if a few people see the wrong one.
So, can anyone point me towards a tutorial on understanding IPs, and how I could go about matching the numerical numbers to the two lists mentioned above, showing IP numbers for different countries.
Thanks, Robin
If so, it's unlikely you will be able to accomplish your custom IP based ad delivery. You WILL need some type of script to sort and redirect IPs and many free servers won't permit installing your own scripts... Some do, but finding a free server running IIS AND allowing scripts could be a serious challenge...
Presently, *nix hosting can be found in the US for $5-$10 per month. I suspect the price of IIS hosting has come down as well. Perhaps it's time to do some shopping? Can some of your ad revenue be redirected to cover these hosting costs?
So, I can run ASP and doing anything within it (such as obtain the numerical IP of a visitor and process it). What I can't do it edit any of the server settings, or execute an ASP script which alters any of the server settings.
Cheers, Robin
If you're paying for hosting, contact their support group. Ask them to configure your site for DNS lookups. My experience is that most hosts are flexible in this respect.
This [google.com] search yielded over a million pages for "ASP scripts." Perhaps you can find something that will do what you want.
I've just done a bit of research and I cannot find a specific list of UK IPs. You may need to buy or build one, not a small task. If you sample the class B addresses at [ipindex.net...] under 128, 129, and 130, you will find that many European and some UK university address blocks are sprinkled throughout. There are many more of these class B blocks to sift through... And then the class Cs... Your IP list will be massive and constantly changing, hence VERY high maintenance. Does DNS addressing begin to look more attractive to you?
You might be interested in a service that we offer which returns the ISO 2 letter country code for any IP address or hostname (if resolvable) which is submitted to it.
Visit www.samoa.co.uk/whereis.html
(edited by: DaveAtIFG at 5:43 am (gmt) on Sep. 3, 2001