I am using Debian 8.5, with dnsmasq. I am having a very weird internet access problem which I couldn't understand why.
I have a pretty stupid internet provider (turktelekom) and when you exceed bandwith they redirect you to an error page normally, but then it goes away after you enter other websites.
But there is a new problem today. Here is some diagnostics:
Enter in Firefox for example,
example.com, it redirects you to:
example.com/X (or any other path) then you get the
The same is true for many other websites, except google.
I tried with different browsers, cleared all cache, reinstalled browsers, restart networking, reboot, stop dnsmasq totally, and I tried everything I can think of.
In Firefox, in developer tools, it shows HTTP 307, and then redirects to that silly address.
The weird thing is this:
When I get any website using
curl there is no problem.
When I enter any website with my Android phone, connected to the wireless router, again there is no problem.
I tried with Firefox, Opera, Chrome, it is the same.
it correctly shows the IP. When I enter the IP into a browser, again I am redirected to that silly address.
When I enter a https address, it doesn't redirect to that silly address. This occurs only for http addresses.
Do the given diagnostics makes any sense to anybody?
In case anybody else have the same problem:
These abusers interfere your traffic and inspect user-agents and other data. Probably because of a bug in their system, it redirects to a non-existent address. If you change the user-agent of your browser the problem goes away. For example in Firefox you can do this:
about:config in the address bar. Accept the warning message. Right click an empty place and select
New > String, then write
general.useragent.override and leave the second dialog empty (or write a random user-agent).