Opera Browser – How to Make Opera Obey the etc/hosts File

dnshosts-fileoperawindows

Current version of Opera browser doesn't obey etc/hosts file for domains outside the local network. It looks to me like it is using its own DNS resolver.

For example if I create the following entries in hosts file:

127.0.0.1 stackoverflow.com  #IPv4 example
::1 www.stackoverflow.com    #IPv6 example

then Firefox, IE and network tools like ping evaluate stackoverflow.com as localhost (127.0.0.1) but Opera still visits real stackoverflow.com (even after restart).

I view this behavior as unsecure and annoying, as system-wide list of unwanted (dangerous or intentionally blocked) sites is ignored by the browser. Is there a way how to make Opera browser obey the content of etc/hosts file?

Best Answer

There is Turbo mode in Opera, I guess you have it turned on.

When it is turned on - browser may ignore your local DNS configuration.

How does Opera Turbo work?

The technology behind Opera Turbo is a proxy server with server-side compression of webpages. A compression rate of up to 80% can be achieved, in part by reducing the quality of images.

Source: link

Related Question