Does is possible blocking location/geo?

Ask for help about NoScript, no registration needed to post
antilocator

Does is possible blocking location/geo?

Post by antilocator »

Hi experts,
On a page is this script

Code: Select all

<script type="text/javascript">
if (top.location != self.location) { top.location = self.location.href }
</script>
Mozilla/5.0 (Windows NT 6.0; rv:25.0) Gecko/20100101 Firefox/25.0
access2godzilla
Senior Member
Posts: 109
Joined: Sun May 20, 2012 5:09 pm

Re: Does is possible blocking location/geo?

Post by access2godzilla »

It's a framebuster, not a "geolocation" script.

Noscript doesn't block geolocation (if scripts are allowed) but FF should notify you that a site wants to know your location.

Also, most sites can know your location (without any user side scripting) since they can see the IP address you come from.
Mozilla/5.0 (Windows NT 6.1; rv:21.0) Gecko/20130401 Firefox/21.0
antilocator

Re: Does is possible blocking location/geo?

Post by antilocator »

Ok, thank you
Mozilla/5.0 (Windows NT 6.0; rv:25.0) Gecko/20100101 Firefox/25.0
antilocator

Re: Does is possible blocking location/geo?

Post by antilocator »

changing option geo.enabled ... false doesn't helped. Does Browser haven't possible detection of IP to prevent?
Mozilla/5.0 (Windows NT 6.0; rv:25.0) Gecko/20100101 Firefox/25.0
access2godzilla
Senior Member
Posts: 109
Joined: Sun May 20, 2012 5:09 pm

Re: Does is possible blocking location/geo?

Post by access2godzilla »

antilocator wrote:changing option geo.enabled ... false doesn't helped. Does Browser haven't possible detection of IP to prevent?
No, nothing can really prevent a site from knowing your IP address, the browser must send out the computers IP address in order to get a response from the server.

It's like a letter you send - if you give out a wrong address, expect your replies to be sent to the wrong address.
Mozilla/5.0 (Windows NT 6.1; rv:21.0) Gecko/20130401 Firefox/21.0
barbaz
Senior Member
Posts: 11163
Joined: Sat Aug 03, 2013 5:45 pm

Re: Does is possible blocking location/geo?

Post by barbaz »

access2godzilla wrote:No, nothing can really prevent a site from knowing your IP address, the browser must send out the computers IP address in order to get a response from the server.

It's like a letter you send - if you give out a wrong address, expect your replies to be sent to the wrong address.
But if you use a proxy, then only the proxy will know your IP address. The website you're viewing will see the IP address of the proxy and thus not know your actual IP address.

Of course, you would have to trust the proxy not to leak sensitive data later or inject malware in the sites you're viewing. Which is why IMO it's actually safer to let websites see your real IP address.
*Always* check the changelogs BEFORE updating that important software!
Mozilla/5.0 (Macintosh; Intel Mac OS X 10.7; rv:25.0) Gecko/20100101 Firefox/25.0 SeaMonkey/2.22.1
Post Reply