Author Topic: How do you ban a geographic area from a website?  (Read 1695 times)

MillCreek

  • Skippy The Wonder Dog
  • friend
  • Senior Member
  • ***
  • Posts: 20,025
  • APS Risk Manager
How do you ban a geographic area from a website?
« on: April 12, 2016, 05:06:46 PM »
I was reading that a large porn website was banning access from North Carolina to protest their new LGBT law.  This made me wonder: how do you identify a user/group of users from a particular geographic area?  Is it something to do with IP addresses?  Are the IP addresses in a given geographic area similar, such as having the same number codes in the address?
_____________
Regards,
MillCreek
Snohomish County, WA  USA


Quote from: Angel Eyes on August 09, 2018, 01:56:15 AM
You are one lousy risk manager.

cordex

  • Administrator
  • Senior Member
  • *****
  • Posts: 8,689
Re: How do you ban a geographic area from a website?
« Reply #1 on: April 12, 2016, 05:15:54 PM »
It would typically be done at the IP address level, although it is not a simple range based categorization. There are a number of sources for IP-to-geography translation with varying levels of accuracy.

AJ Dual

  • friends
  • Senior Member
  • ***
  • Posts: 16,162
  • Shoe Ballistics Inc.
Re: How do you ban a geographic area from a website?
« Reply #2 on: April 12, 2016, 05:24:34 PM »
I was reading that a large porn website was banning access from North Carolina to protest their new LGBT law.  This made me wonder: how do you identify a user/group of users from a particular geographic area?  Is it something to do with IP addresses?  Are the IP addresses in a given geographic area similar, such as having the same number codes in the address?

There are large databases that have rough geographic information for various ISP routers and even countless home and small business WiFi SSID's that were geo-located by people's smartphones to aid in improving GPS data when the satellite signals are blocked or not reliable. Many routers have an option where you can actually input their latitude and longitude voluntarily in them as well, which is used for the various fancy maps of a country or the world showing airline route-like lines going around from city to city. YouTube, Netflix, and other services use data like this to block or show movies/videos that may be copyright restricted in certain countries for instance.

(The wide array of Hitler "Downfall" parodies with alternate subtitles for instance are all blocked in Germany by YouTube, but can be viewed in America where they come under "fair use" stipulations of Copyright for "parody" etc.)

However, there's problems with this, the databases are constantly changing etc. and there's inaccuracies, and some randomly chosen "dumping grounds" for IP's that don't have reliable geographic data in them. Like these poor people: http://fusion.net/story/287592/internet-mapping-glitch-kansas-farm/

And the geo-location, depending on the way IP info is reported by the ISP can show you in a completely different state at times. For instance, Facebook records my home access through AT&T U-Verse as being in Michigan at times rather than Wisconsin. And my smartphone with Verizon often shows up as Texas...

Someone using this data could certainly inconvenience a large portion, say 80-90% of a state's users accessing your site this way if they wanted to. And a savvy user could easily get around it too.

« Last Edit: April 13, 2016, 12:58:25 PM by AJ Dual »
I promise not to duck.

RevDisk

  • friend
  • Senior Member
  • ***
  • Posts: 12,633
    • RevDisk.net
Re: How do you ban a geographic area from a website?
« Reply #3 on: April 13, 2016, 12:36:25 PM »
I was reading that a large porn website was banning access from North Carolina to protest their new LGBT law.  This made me wonder: how do you identify a user/group of users from a particular geographic area?  Is it something to do with IP addresses?  Are the IP addresses in a given geographic area similar, such as having the same number codes in the address?

The 'best' geo-IP is about 99% accurate by country, 90% accurate by state, 80% accurate by city/zip. It's virtually never accurate below zip. Morons (ie the government) has assumed so in the past, and raided people off it.

"Rev, your picture is in my King James Bible, where Paul talks about "inventors of evil."  Yes, I know you'll take that as a compliment."  - Fistful, possibly highest compliment I've ever received.

TechMan

  • Administrator
  • Senior Member
  • *****
  • Posts: 10,562
  • Yes, your moderation has been outsourced.
Re: How do you ban a geographic area from a website?
« Reply #4 on: April 13, 2016, 12:44:47 PM »
A timely article that is relevant to the discussion at hand:  http://fusion.net/story/287592/internet-mapping-glitch-kansas-farm/
Quote
Hawkmoon - Never underestimate another person's capacity for stupidity. Any time you think someone can't possibly be that dumb ... they'll prove you wrong.

Bacon and Eggs - A day's work for a chicken; A lifetime commitment for a pig.
Stupidity will always be its own reward.
Bad decisions make good stories.

Quote
Viking - The problem with the modern world is that there aren't really any predators eating stupid people.

MillCreek

  • Skippy The Wonder Dog
  • friend
  • Senior Member
  • ***
  • Posts: 20,025
  • APS Risk Manager
Re: How do you ban a geographic area from a website?
« Reply #5 on: April 13, 2016, 01:06:40 PM »
I just did an IP lookup and location on the Internet.  It shows my correct service provider, Comcast, but gives a city about 20 miles south of me as my current location.  Hmm.
_____________
Regards,
MillCreek
Snohomish County, WA  USA


Quote from: Angel Eyes on August 09, 2018, 01:56:15 AM
You are one lousy risk manager.

Ben

  • Administrator
  • Senior Member
  • *****
  • Posts: 46,337
  • I'm an Extremist!
Re: How do you ban a geographic area from a website?
« Reply #6 on: April 13, 2016, 04:51:40 PM »
I just did an IP lookup and location on the Internet.  It shows my correct service provider, Comcast, but gives a city about 20 miles south of me as my current location.  Hmm.

Yes, that's standard. When I had Cox, which had dynamic IPs, I would often jump to neighboring cities, depending on which of their nodes they were providing me bandwidth from. Now that I'm static on microwave, my location is the tower my antenna is pointed to, 30 miles away. Whenever I use my Verizon 4G modem locally, it provides my location as a city about 100 miles from me.
"I'm a foolish old man that has been drawn into a wild goose chase by a harpy in trousers and a nincompoop."

230RN

  • saw it coming.
  • friend
  • Senior Member
  • ***
  • Posts: 18,970
  • ...shall not be allowed.
Re: How do you ban a geographic area from a website?
« Reply #7 on: April 13, 2016, 09:06:12 PM »
I accidentally put in my zip as 808 sumpthin' somethin' (Hawaii) somewhere and that kind of propagated around a little bit.  I was gettin' ads for Honolulu car dealers and whatnot.

Right now, my TV over the air programming is set to my ISP's location southeast of Denver and I get program listings up the ying yang which I can't actually receive.  Gotta figure out how to change that someday.

If I enter the actual one in the "ZipCode" box for the TV listings, it switches to the ISP zip anyhow.

Poor me. <snif>

Terry
WHATEVER YOUR DEFINITION OF "INFRINGE " IS, YOU SHOULDN'T BE DOING IT.

freakazoid

  • friend
  • Senior Member
  • ***
  • Posts: 6,243
Re: How do you ban a geographic area from a website?
« Reply #8 on: April 14, 2016, 12:23:18 AM »
A timely article that is relevant to the discussion at hand:  http://fusion.net/story/287592/internet-mapping-glitch-kansas-farm/

That's pretty crazy.
"so I ended up getting the above because I didn't want to make a whole production of sticking something between my knees and cranking. To me, the cranking on mine is pretty effortless, at least on the coarse setting. Maybe if someone has arthritis or something, it would be more difficult for them." - Ben

"I see a rager at least once a week." - brimic