使用google服务hosts的终极修改方法详解 - 小众知识

使用google服务hosts的终极修改方法详解

2013年01月27日 14:18:05 苏内容
  标签: google
阅读:7328

众所周知,在国内出于国内安全和自我保护意识,google的各项服务都是禁止使用的。很多网站主更是有所感受,那么如何才能正常访问的google的各项服务呢?(如果按照以下方法在使用中产生什么问题,也可以使用免费翻墙软件,这个可能更加轻松一点。)

google服务

我综合了网络上的各种资源终于找到了自行修改google hosts文件,无限访问google的方法,下面给大家全面介绍下:

hosts文件的作用

将一些常用的网址域名与其对应的IP地址建立一个关联“数据库”,当用户在浏览器中输入一个需要登录的网址时,系统会首先自动从Hosts文件中寻找对应的IP地址,一旦找到,系统会立即打开对应网页,如果没有找到,则系统再会将网址提交DNS域名解析服务器进行IP地址的解析。

hosts文件的工作方式

利用Hosts文件中建立域名和IP的映射关系来达到目的。根据Windows系统规定,在进行DNS请求以前,Windows系统会先检查自己的Hosts文件中是否有这个网络域名映射关系。如果有则,调用这个IP地址映射,如果没有,再向已知的DNS服务器提出域名解析。

便捷打开hosts文件

对于经常使用google服务的人来说,可以需要经常打开hosts文件,但是这个hosts文件属于系统文件是被隐藏保护的,在windows xp和windows 7系统下其地址是:\Windows\System32\Drivers\Etc。这里告诉大家一个比较便捷的打开hosts文件的方法

新建一个txt文件,在你其中输入:

notepad "%SystemRoot%\system32\drivers\etc\hosts"
ipconfig /flushdns
exit

保存,将扩展名改成成.bat,之后双击这个bat文件就可以自动打开hosts文件进行修改了。为了朋友们使用方便,果断整理好了,需要的可以点击下载 hosts.bat

google 最新hosts文件的获得

很多人对于国内对hosts的打击很不满意,每次不能正常访问google服务的时候就开始大面积搜索新的google服务的映射ip地址,其实大家没必要四处找,自己可以利用smarthosts(SmartHosts是一个在Google Code上维护更新的Hosts文件)去获得最新的IP地址。两种方法:

1.访问googlecode网站获得,https://smarthosts.googlecode.com/svn/trunk/hosts,这里提供了最新的映射IP地址,将获得的hosts文件附加到自己电脑的hosts中就可以了;

2.利用smarthosts.exe程序,点击下载smarthosts.exe程序,下载后双击这个程序会生成3个文件 hosts、lists和srvlist注意使用这个经常会弹出错误,这个时候不要着急,过几分钟后可以重试。这个时候你以记事本形式打开hosts你只会发现这段信息

<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN">
<html><head>
<title>404 Not Found</title>
</head><body>
<h1>Not Found</h1>
<p>The requested URL /svn/trunk/hosts_new was not found on this server.</p>
</body></html>

这并不是咱们所需要的映射IP地址的。

解决办法:这个时候会自动弹出一个对话框

使用google服务hosts的终极修改方法详解

点击&ldquo;高级&rdquo;将数据源设置成第一个来自google code上,之后点击确定会提示更新成功,然后你再打开生成的hosts文件就有了

使用google服务hosts的终极修改方法详解

手机hosts文件的自动更新

现在很多google服务都是提供移动终端版的,比如我常用的gmail、play、Google+等,但是使用过程中总会弹出&ldquo;自动关闭&rdquo;、&ldquo;无法启用&rdquo;等错误信息,而导致无法使用,这时你可以下载手机版的smarthosts文件,扫一扫这个二维码自动下载:

使用google服务hosts的终极修改方法详解

这个应用在各个app store内都有,比如豌豆荚、360手机助手等也可以访问这里自动下载:http://www.appchina.com/app/mobi.smarthosts/

说明:

以上hosts文件的获得肯定只是临时的,想要经常性的在国内使用google服务肯定要开展一个旷日持久的拉锯战,咱们处于国家安全考虑还是要尊重政府的决定的。我在网上看了很多帖子都没有对这个进行详细的介绍,如果你试用一下,可以的话,就把它分享一下,让更多的人使用到google服务吧。

扩展阅读

Suese

2018-05-12 08:54:27

xxABUk https://www.genericpharmacydrug.com

Suese

2018-05-13 13:05:34

tM0OOu <a href="http://colilnkmalik.com/">colilnkmalik</a>, [url=http://mnflkmgrzoud.com/]mnflkmgrzoud[/url], [link=http://odiwndlupvpi.com/]odiwndlupvpi[/link], http://tfxlggdvzckm.com/

Suese

2018-05-13 14:46:13

Li0z03 <a href="http://esllftawuqij.com/">esllftawuqij</a>, [url=http://gpeapcpprqyw.com/]gpeapcpprqyw[/url], [link=http://kfhfpzwblnkn.com/]kfhfpzwblnkn[/link], http://qpdybzyktwdk.com/

Suese

2018-05-13 16:25:28

9ZaORl <a href="http://hotfumojpccf.com/">hotfumojpccf</a>, [url=http://opdbhipzlqbw.com/]opdbhipzlqbw[/url], [link=http://wkzfexoeqrbl.com/]wkzfexoeqrbl[/link], http://scgulezrxrfc.com/

Suese

2018-05-13 17:26:11

NJqbXw <a href="http://xwjouyfrrqmq.com/">xwjouyfrrqmq</a>, [url=http://wqawlaqzvtxq.com/]wqawlaqzvtxq[/url], [link=http://aojvzalotzhx.com/]aojvzalotzhx[/link], http://gpqgvmnkpioj.com/

Suese

2018-05-13 18:07:53

dGnwBt <a href="http://mwyxwhqoxcvs.com/">mwyxwhqoxcvs</a>, [url=http://tsrwldazubom.com/]tsrwldazubom[/url], [link=http://sphniqzysait.com/]sphniqzysait[/link], http://gixwegtzseks.com/

Suese

2018-06-09 15:30:23

cOosZz <a href="http://grswdhmzthst.com/">grswdhmzthst</a>, [url=http://lzbqcnzcajgi.com/]lzbqcnzcajgi[/url], [link=http://odxwxojlpqni.com/]odxwxojlpqni[/link], http://povhgtkhpfhq.com/

Suese

2018-06-09 18:17:19

3D8BN8 <a href="http://rwffbpipxbgz.com/">rwffbpipxbgz</a>, [url=http://istadcljbgyn.com/]istadcljbgyn[/url], [link=http://qqfcqrxfnqmx.com/]qqfcqrxfnqmx[/link], http://yjwccetzlfmz.com/

Suese

2018-06-26 20:31:45

KMEMwr <a href="http://fjyteghcujma.com/">fjyteghcujma</a>, [url=http://maojlsteywyz.com/]maojlsteywyz[/url], [link=http://pdnogsvbsqhf.com/]pdnogsvbsqhf[/link], http://pjzkbqjfsawf.com/

Suese

2018-06-26 21:39:33

VJ9O40 <a href="http://cpppuxglcksi.com/">cpppuxglcksi</a>, [url=http://jzbmatggjnbz.com/]jzbmatggjnbz[/url], [link=http://lvwhxsrpzbez.com/]lvwhxsrpzbez[/link], http://xenqpbtmpcem.com/

Suese

2018-06-26 23:13:44

cmlaqB <a href="http://sciopzbkwzjt.com/">sciopzbkwzjt</a>, [url=http://kjfmdlplbtkx.com/]kjfmdlplbtkx[/url], [link=http://irmqapnojnpe.com/]irmqapnojnpe[/link], http://xcdkgnqaakff.com/

Suese

2018-06-27 00:46:54

7T5MEz <a href="http://fattpdyozdzm.com/">fattpdyozdzm</a>, [url=http://kynchhkzuyye.com/]kynchhkzuyye[/url], [link=http://ekhjeeauxelv.com/]ekhjeeauxelv[/link], http://rctbmfgvfpnh.com/

Suese

2018-06-29 16:53:58

I do some voluntary work <a href=" https://www.drugonsale.com ">online pharmacy</a> As Twitter Inc races toward the year's most highly anticipated tech offering, memories of Facebook Inc's disappointing 2012 debut are dampening enthusiasm for shares of the eight-year-old online messaging service.

Suese

2018-06-29 17:28:27

Are you a student? https://www.drugonsale.com kamagra In 2011, the Bill & Melinda Gates Foundation made the singlelargest grant of $967 million over five years to the GlobalAlliance for Vaccines and Immunization, according to theFoundation Center, a leading source of information aboutphilanthropy worldwide.

Suese

2018-06-29 18:04:42

I'm a trainee <a href=" https://www.drugonsale.com ">levitra</a> As China was swept by dramatic changes—from Japanese invasion, to the Communist victory in the civil war, and a transition from a planned economy to the market—most Chengmai residents carried on doing what they had always done, growing crops.

Suese

2018-06-29 20:57:37

I've got a full-time job <a href=" https://www.drugonsale.com ">kamagra</a> Mark Dampier of Hargreaves Lansdown lamented the extra fees on Jupiter's fund, saying that although investors can expect to see an improvement under much respected new manager Mr Clunie, it will be from a low base and therefore not deserved.

Suese

2018-06-29 21:51:46

Could I order a new chequebook, please? https://www.drugonsale.com viagra U.S. regulators' approach since the crisis has reflectedsome of these challenges. Although the Securities and ExchangeCommission has charged over 150 firms and individuals inrelation to the financial crisis, critics have still said it hasnot done enough to go after high-level bank executives.

Suese

2018-06-29 22:28:52

Whereabouts are you from? <a href=" https://www.drugonsale.com ">levitra</a> Bill Frenzel, a former Republican congressman who is now aguest scholar at the Brookings Institution, said that ifRepublicans could not stop Bernanke then, there is little chancethat Yellen, widely seen as continuing his policies, will berejected now.

Suese

2018-06-29 22:41:32

I'd like to open a business account <a href=" https://www.drugonsale.com ">viagra</a> Lavrov stressed that ongoing attempts to threaten the use of force against Syria would provoke the opposition and disrupt a chance for peace negotiations in Geneva that the U.S. and Russia have been trying to organize.

Suese

2018-06-29 23:20:17

Where do you come from? https://www.drugonsale.com online pharmacy "We don't have information about a specific event that might take place at the conclusion of the trial, but we encourage everyone to keep any protests peaceful," Broward Sheriff Scott Israel said in a statement.

Suese

2018-06-30 00:00:01

US dollars <a href=" https://www.drugonsale.com ">cheap order drugs</a> With its 10 million users per minute, Taobao has ridden thee-commerce boom in China, with its customers moving fromnon-essential items such as books and electronics to clothes andrecently food. Its sales of meat, seafood, fruit and vegetablesgrew 42 percent last year to nearly 1.3 billion yuan.

Suese

2018-06-30 00:35:29

Until August <a href=" https://www.drugonsale.com#headstone ">cialis</a> Google shares were flat in the quarter, lagging the overallmarket. Danoff, in his third-quarter commentary letter, saidthat opened up an opportunity to add to a stake that was worth$5.8 billion at the end of August. No specific figures weregiven.

Suese

2018-06-30 01:15:15

Could I have an application form? https://www.drugonsale.com viagra Some of their disappointment might be related to their own fund disappointments. Pimco's Total Return Fund, the world's largest mutual fund, managed by El-Erian's colleague Bill Gross, trailed 94 percent of its peers in the latest month, according to Bloomberg data. Druckenmiller vented his frustration in a recent Goldman Sachs client note, explaining why he closed his fund rather than suffer with the bad returns he expected.

Suese

2018-06-30 01:55:43

I'm interested in <a href=" https://www.drugonsale.com ">kamagra</a> The Payments Council said the success of the new system will be judged on the level of awareness and consumer confidence in switching. Further action, including account number portability, akin to keeping the same mobile number when switching providers, is also on the agenda.

Suese

2018-06-30 03:19:14

It's serious <a href=" https://www.drugonsale.com ">cheap order drugs</a> Republicans have "zero" ideas for a health care overhaul, Gingrich said, although they have vowed to get rid of the Affordable Care Act, known as Obamacare. "You say you're against Obamacare and stop, because that's all you think you need to say."

Suese

2018-06-30 03:59:22

Will I have to work on Saturdays? https://www.drugonsale.com levitra Facebook's rocky 2012 debut and subsequent share-price plunge chilled the consumer-dotcom IPO market for a year. The stock clawed its way back to its $38 IPO price in July, however, and is now at a record high after touching $45 this week.

Suese

2018-06-30 04:25:07

Could you please repeat that? <a href=" https://www.drugonsale.com#blockade ">online pharmacy</a> “This vandalism was not just an attack on the statue of the iconic figure who shattered Major League Baseball’s color line, but represents an attack on all the values of social progress and equality that Jackie Robinson stood for,” he said.

Suese

2018-06-30 04:40:30

A few months <a href=" https://www.drugonsale.com ">kamagra</a> Warshaw, seen by many internally as one of the pillars ofthe Swiss bank's famed advisory business that UBS inherited withSG Warburg - an investment bank it bought in 1995 - worked onsome of the largest transactions in the media sector.

Suese

2018-06-30 05:05:16

Through friends https://www.drugonsale.com levitra A former Chicago police officer, Farina would go on to become a well-known character actor in film and TV. The actor, recognizeable with his trademark dark eyebrows and prominent mustache, usually played a gangster or mobster, and even his more heroic roles had a tinge of menace to them.

Suese

2018-06-30 05:44:16

A financial advisor <a href=" https://www.drugonsale.com ">cialis</a> A downgrade of Korea, significant changes leading to a dilution in state ownership and state control, or weakening in SBC's links with the government, including the importance of the entity's public-policy role and budgeting relationship, could trigger a downgrade. This is because SBC, under these circumstances, would no longer be classified as a dependent public-sector entity and, therefore, no longer be credit-linked to the sovereign ratings.

Suese

2018-06-30 07:07:35

I came here to study <a href=" https://www.drugonsale.com ">purchase medication online </a> “One only has to ask for forgiveness if one is guilty of a crime. If you think it’s such a big crime, why should the culprit be forgiven? Just because Modi is a chief minister, why should he be forgiven? I think Modi should get the biggest punishment possible if he is guilty. And the world should know there isn’t any tolerance for these kind of political leaders.”

Suese

2018-06-30 07:47:57

I'd like to pay this cheque in, please https://www.drugonsale.com cialis Country singer Tyler Farr entered the chart at No. 5 with his debut album "Redneck Crazy," while Los Angeles sister trio Haim came in at No. 6 with the critically acclaimed debut album "Days Are Gone."

Suese

2018-06-30 08:28:56

real beauty page <a href=" https://www.drugonsale.com ">cheap order drugs</a> Ott took two penalties on the play – for roughing and for holding - while Okposo took one, giving the Isles a power play. About a minute into the man advantage, Tavares blasted a slap shot from the high slot that was deflected in off the hip of Moulson to give the Isles a 3-2 advantage. Just as it seemed like the Isles would improve to 2-0-1 at home, Marcus Foligno tied it for the Sabres with two minutes to play to send it into overtime.

Suese

2018-07-07 20:17:35

xcv4Bs <a href="http://iiptceduoehe.com/">iiptceduoehe</a>, [url=http://preyinalogfs.com/]preyinalogfs[/url], [link=http://vqogyijugzbw.com/]vqogyijugzbw[/link], http://nrxeabzxchzq.com/

Suese

2018-07-07 22:12:13

T09mDb <a href="http://iwgqqofqvkyc.com/">iwgqqofqvkyc</a>, [url=http://rnbsgthuowny.com/]rnbsgthuowny[/url], [link=http://icaizoxseukq.com/]icaizoxseukq[/link], http://mjzspsvmcnve.com/

Suese

2018-07-07 22:18:17

ZQ8L7P <a href="http://nfihvxxpbqsu.com/">nfihvxxpbqsu</a>, [url=http://dblsymhrwoce.com/]dblsymhrwoce[/url], [link=http://ioyebpowlhyc.com/]ioyebpowlhyc[/link], http://kqjohxxlncds.com/