Yuav ua li cas Kho cov ntaub ntawv HOSTS hauv Windows

Cov txheej txheem:

Yuav ua li cas Kho cov ntaub ntawv HOSTS hauv Windows
Yuav ua li cas Kho cov ntaub ntawv HOSTS hauv Windows
Anonim

Yuav Paub

  • Qhib Notepad lossis lwm cov ntawv nyeem > xaiv File > Open > qhib Host file.
  • Tom ntej, xaiv Text Cov Ntaub Ntawv (txt) thiab hloov mus rau All Files > ob-nias hosts.
  • Ua hloov pauv thiab txuag.

Ntawm no yog yuav hloov kho cov ntaub ntawv Windows HOSTS li cas, uas yog tsim nyog los ua kev cai sau redirects, thaiv cov vev xaib, lossis tshem tawm cov ntawv tsis zoo los ntawm malware. Cov lus qhia siv rau Windows 10, 8, 7, thiab XP.

Yuav ua li cas kho cov ntaub ntawv Windows HOSTS

Hauv Windows 10, 8, thiab 7, koj tsis tuaj yeem khaws cov kev hloov kho rau HOSTS cov ntaub ntawv tshwj tsis yog tias koj qhib nws ncaj qha los ntawm Notepad lossis lwm cov ntawv nyeem. Yuav ua li cas:

  1. Qhib Notepad lossis lwm cov ntawv nyeem zoo li Notepad ++.

    Image
    Image
  2. In the text editor, xaiv File > Qhib thiab qhib HOST cov ntaub ntawv qhov chaw ntawm C:\Windows\System32 \drivers\etc\.

    Image
    Image
  3. Select Text Documents (txt) nyob rau hauv qab-txoj cai ntawm lub Open qhov rais thiab hloov mus rau Tag nrho cov ntaub ntawv.

    Image
    Image

    Cov kauj ruam no yuav tsum tau vim tias HOSTS cov ntaub ntawv tsis muaj. TXT cov ntaub ntawv txuas ntxiv.

  4. Thaum cov ntaub ntawv tshwm sim hauv daim nplaub tshev, nyem ob npaug hosts qhib nws.

    Image
    Image
  5. Kho cov ntaub ntawv HOSTS thiab txuag koj cov kev hloov pauv.

Yuav ua li cas yog tias kuv khaws tsis tau cov ntaub ntawv HOSTS?

Nyob hauv qee lub Windows, koj tsis muaj kev tso cai los khaws ncaj qha rau etc\ folder. Yog tias qhov no tshwm sim, koj yuav pom qhov yuam kev zoo li qhov no thaum koj sim txuag:

Nkag mus rau C:\Windows\System32\drivers\etc\hosts raug tsis lees paub

Cannot create the C:\Windows\System32\drivers\etc\hosts file. Xyuas kom meej tias txoj kev thiab lub npe cov ntaub ntawv yog lawm.

Xwb, koj yuav tsum khaws cov ntaub ntawv rau lwm qhov xws li Cov ntaub ntawv lossis Desktop folder. Tom qab khaws cia, mus rau lub nplaub tshev ntawd, luam cov ntaub ntawv HOSTS, thiab muab tso ncaj qha rau hauv qhov chaw uas cov ntaub ntawv HOSTS yuav tsum yog (C:\Windows\System32\drivers\etc). Koj yuav raug ceeb toom nrog kev tso cai validation thiab yuav tau lees paub tias overwriting cov ntaub ntawv.

Yog tias koj tseem muaj teeb meem khaws cov ntaub ntawv hloov kho HOSTS, tshawb xyuas cov ntaub ntawv tus cwj pwm kom pom tias nws tau raug cim nyeem nkaus xwb. Right-click the file thiab xaiv Properties kom pom cov yam ntxwv.

Lwm txoj kev xaiv yog qhib koj cov ntawv nyeem cov ntawv sau ua tus thawj coj kom cov kev tso cai twb tau thov rau tus editor. Tom qab ntawd, txuag cov ntaub ntawv HOSTS dhau qhov qub tuaj yeem ua tiav yam tsis tas yuav txheeb xyuas koj daim ntawv pov thawj admin.

Yog tias koj tseem tsis tuaj yeem khaws cia rau HOSTS cov ntaub ntawv qhov chaw, tej zaum koj yuav tsis muaj kev tso cai kom raug los kho cov ntaub ntawv hauv daim nplaub tshev ntawd. Koj yuav tsum tau nkag mus rau hauv tus account uas muaj cai tswj hwm cov ntaub ntawv HOSTS, uas koj tuaj yeem tshawb xyuas los ntawm txoj cai-nias cov ntaub ntawv thiab mus rau Security tab.

HOSTS ntaub ntawv siv rau dab tsi?

HOSTS cov ntaub ntawv yog qhov sib npaug ntawm lub tuam txhab xov tooj cov npe kev pab. Qhov twg cov ntaub ntawv kev pab cuam cuam tshuam tus neeg lub npe rau tus lej xov tooj, HOSTS cov ntaub ntawv qhia cov npe sau npe rau IP chaw nyob.

Nkag hauv HOSTS cov ntaub ntawv hla DNS nkag tswj hwm los ntawm ISP. Thaum lub hierarchy no tuaj yeem ua ke rau kev siv tsis tu ncua, nyiam los thaiv kev tshaj tawm lossis qee qhov chaw nyob IP siab phem, nws cov haujlwm tseem ua rau cov ntaub ntawv no yog lub hom phiaj ntawm malware.

Los ntawm kev hloov kho nws, malware tuaj yeem thaiv kev nkag mus rau kev hloov kho antivirus lossis yuam koj mus rau lub vev xaib siab phem. Yog li, nws yog ib lub tswv yim zoo los xyuas cov ntaub ntawv HOSTS ib ntus lossis tsawg kawg paub yuav ua li cas tshem tawm cov ntawv cuav.

Ib txoj hauv kev yooj yim dua los thaiv qee qhov ntawm koj lub khoos phis tawj yog siv cov kev cai DNS uas txhawb nqa cov ntsiab lus lim lossis blocklists.

Pom zoo: