LQ Suggestions & FeedbackDo you have a suggestion for this site or an idea that will make the site better? This forum is for you.
PLEASE READ THIS FORUM - Information and status updates will also be posted here.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
To test it, ping those hosts and see if it resolves to the loopback - if it doesn't you've not added those in the right place. Also try adding "www." variants for some of those lines.
This is what I've get when pinging google.com with those lines in /etc/hosts:
Code:
$ ping google.com
PING google.com (127.0.0.1) 56(84) bytes of data.
64 bytes from localhost (127.0.0.1): icmp_req=1 ttl=64 time=0.243 ms
(Note IP address - if you see something other than the loopback address, then you've not configured your hosts correctly)
Note: If you're connected using a proxy, then your /etc/hosts is being bypassed anyway. In that case use a mozilla browser and install requestpolicy and just deny requests to the google hosts.
pedro@pedro-bedro2:~$ ping -c 5 google.com
PING google.com (127.0.0.1) 56(84) bytes of data.
64 bytes from localhost (127.0.0.1): icmp_seq=1 ttl=64 time=0.047 ms
64 bytes from localhost (127.0.0.1): icmp_seq=2 ttl=64 time=0.046 ms
64 bytes from localhost (127.0.0.1): icmp_seq=3 ttl=64 time=0.054 ms
64 bytes from localhost (127.0.0.1): icmp_seq=4 ttl=64 time=0.044 ms
64 bytes from localhost (127.0.0.1): icmp_seq=5 ttl=64 time=0.048 ms
--- google.com ping statistics ---
5 packets transmitted, 5 received, 0% packet loss, time 3997ms
rtt min/avg/max/mdev = 0.044/0.047/0.054/0.009 ms
If you could just point me at 'requestpolicy' How do I get it??
Sometimes I use astrill as my vpn, but usually I don't start it, as things go slower. Just some things are totally blocked and if you want to read them, then you need a vpn.
I always use Firefox.
Just to let you know: things are really loading faster now that I have modified hosts. Do you know where I can read up on how that works? Or is there a very simple explanation?
My collegues who use windows here are jealous! I don't suppose win has a 'hosts' file.
From what I read, the government has cracked down heavily on Tor, making it more difficult to use than elsewhere. That is only second-hand information though. I have only tried Tor a couple times two or three years ago. I could not configure it properly on my then Debian system. At the moment, I am wondering if a VPN is a better option. Of course, that requires more knowledge than I currently possess. I need to learn though, because they are going crazy with blocking things. Not only are Ixquick and DuckDuckGo banned, but BBC news was banned when the protests in Hong Kong became more "energetic."
If the requested page has links to unauthorized site then that is how China blocks them. It has nothing to do with your computer. Tell the government of China to stop.
While I've always been a fan of a good hosts file I believe it will do little in this case.
You'd be better off with a text only browser in my opinion to access LQ.
To be specific, there is an order that linux can access name lookups. It can be changed. Most default would be hosts file but any proxy.pac type or other proxy configs would generally avoid all that.
Probably, but the problem is getting one. Clicking your link for example:
"The network link was interrupted while negotiating a connection. Please try again."
In other words, blocked. Almost every website that has anything to do with proxies or VPNs is blocked.
China is waging war on google at the moment. Even with a vpn, it is not easy to connect. Without, you cannot access gmail or google search at all.
China is getting tricky and 'sees' the vpn. astrill.com is unreachable, unless you have astrill already installed and then you might need stealth mode.
I would like to suggest to the mods that they think about cutting out links to google advertising if the ip is China, then linuxquestions.org might load before the 22nd century! People in China need linuxquestions too!
Thanks!
I think everyone here is familiar with Anonymous...and I'm pretty sure they've overcome getting to Google from China.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.