Back to Question Center
0

Semalt Inopa Mazano Maitiro Aungaita NeBots, Vashambadziri Uye Vanokwata

1 answers:

Kunze kwekusika kutsvaga injini shamwari dzakanaka, iyo .htaccess file inopa webmasters block block specific kubva pakuwana mawebsite. Imwe nzira yekuvhara mabhoti aya ndeye robots.txt faira. Zvisinei, Ross Barber, the Semalt Mutengesi Anobudirira Mutevedzeri, anotaura kuti akaona vamwe vanokanganisa kusateerera chikumbiro ichi. Imwe yenzira dzakanakisisa ndeyokushandisa iyo .htaccess file kuti udzimise kubva kurondedzera zviri mukati mako.

Bhoti idzi chii?

Icho chimiro chepurogiramu inoshandiswa nevanotsvaga kutsvaga zvinyorwa zvitsva kubva paInternet nekunyora zvinangwa.

Vanoita mabasa anotevera:

  • Shanyira ma webhupu awakabatanidza nawo
  • Chengeta yako HTML code yezvikanganiso
  • Vanochengetedza mapeji emapeji aunosangana nawo uye anoona kuti mapeji epawebhu anowirirana nehuwandu
  • Vanonyora zviri mukati yenyu

Zvisinei, mamwe mabhodhi ari anonyangadza uye tsvaga nzvimbo yako yeameri mazai uye mafomu ayo anowanzoshandiswa kukutumira mazita asina kudiwa kana spam. Vamwe vanototarisa kuchengetedzwa kwekuchengeteka mumutsetse wenyu.

Chii chinodikanwa kuti uvhare mapeji ewebhu?

Usati washandisa iyo .htaccess file, unofanira kutarisa zvinhu zvinotevera:

1. Nzvimbo yako yepaiti inofanira kunge ichimhanya pane imwe seva Apache. Mazuva ano, kunyange iyo iyo makambani ekubatisa webhusa hafu yepamusoro mumabasa avo, anokupa kuwanikwa kune faira inoda.

2. Iwe unofanirwa kuva nehutano kwauri iwe majeketi evhareji epawebsite yako kuitira kuti iwe ugone kuona kuti mabhodhi ave achishanyira mapeji ako ewebhu.

Cherechedza kuti hapana nzira iyo iwe uchakwanisa kudzivirira mabhoti ose anokuvadza kunze kwekunge iwe uchivhara zvose, kunyange izvo zvaunofunga kuti zvinobatsira. Bhoti idzva dzinouya zuva roga rega, uye vakwegura vanochinjwa. Nzira yakanakisisa ndeyokuchengetedza code yako uye kuita kuti zvive nyore kuti bots kuwedzere iwe.

Kuziva mabhoti

Bhoti inogona kuonekwa neIndaneti kana kubva kune "Mushandi Wemagetsi", iyo yavanotumira mumusoro weHTTP. Somuenzaniso, Google inoshandisa "Googlebot."

Unogona kudikanwa urongwa uhwu ne 302 bots kana iwe uine zita rebhokisi raunoda kuchengeta kushandisa .htaccess

Imwe nzira ndeyokutora zvose mafaira ekugadzirisa kubva pane sevha uye ovashandura achishandisa mhariri edhesi. Nzvimbo yavo pavhavha inogona kuchinja zvichienderana nekugadzirisa kwe server yako.Kana iwe usingagoni kuwana, tsvaka rubatsiro kubva kune iwe web host host.

Kana iwe uchiziva peji rekushanyira, kana nguva yekushanyira, zviri nyore kuuya nebhokisi risingadiwi. Iwe unogona kutsvaga faira regiyo nemitemo.

Pane imwe nguva, wakaziva kuti chii chaunoda kubvisa; iwe unokwanisa kuisanganisira iwo mu .htaccess file. Ndapota cherechedza kuti kuvhara bot hazvikwani kuimisa. Inogona kudzoka neI IP itsva kana zita.

Ungavadzivisa sei

Tora kopi ye .htaccess file. Ita zvigadziro kana zvichidiwa.

Method 1: kudzivirirwa neP

Nhamba iyi snippet inovhara bot iri kushandisa IP address 197.0.0.1

Mutemo Wakatadza, Rega

Denyuka kubva ku 197.0.0.1

Mutsara wekutanga unoreva kuti sevha ichavhara zvikumbiro zvose zvinoenderana nemaitiro wamakatsanangura uye kubvumira vamwe vose.

Mutsara wechipiri unoudza server kuti ibvise peji 403: peji

Mitiro 2: Kudzivirirwa neVashandi

Nzira iri nyore ndeyokushandisa injini yekuzvinyora yaApache

RewriteEngine On

RewriteCond% {HTTP_USER_AGENT} BotUserAgent

RewriteRule. - [F, L]

Mutsara wokutanga unovimbisa kuti remodhini yekudzorera inobvumira. Mutsara maviri ndiwo mamiriro ayo mutemo unoshanda kune. I "F" mumutsara wechina inoudza sevha kudzoka 403: Inoregererwa apo "L" zvinoreva iyi ndiyo mutemo wokupedzisira.

Iwe uchazoisa iyo .htaccess file kune server yako uye inyore iyo iripo. Nokufamba kwenguva, iwe uchada kuvandudza IP yeB bot. Kana iwe ukaita kukanganisa, ingoisa zvinyorwa zvawakaita.

November 29, 2017
Semalt Inopa Mazano Maitiro Aungaita NeBots, Vashambadziri Uye Vanokwata
Reply