If you have a website, sometimes you would want to block visitors coming from a country. Če imate spletno stran, včasih bi si želeli blokirati obiskovalce, ki prihajajo iz države. For example you are running a promotion for certain countries and you don't want visitors from other country to see it. Na primer vi izvajate promocije za nekatere države in ne želite, da obiskovalci iz drugih držav, videti. Other than that, many years ago when I was in the e-book selling business, there are two countries (I am not going to reveal) which has very high chargeback cases, meaning they buy with their credit card and then inform their credit card company that they did not authorize the charge. Razen, da je pred mnogimi leti, ko sem bil v e-knjige prodajo podjetja, obstajajo dve državi (ne bom razkriti), ki ima zelo veliko primerih poračuna, kar pomeni, da kupujejo s svojo kreditno kartico in nato obvestijo svoje kreditne kartice Podjetje, ki niso dovolijo dajatev. The credit card company will then reverse the charges, allowing the buyer to get the intangible product for free by cheating. Kreditne kartice bo nato povratne stroške, ki omogoča kupcu, da zaslužiti neopredmetenih izdelek za prost z goljufanja. No matter how much proof I provided to the company that charged the credit card, the buyer still gets the advantage of reversing the charges. Ne glede na to, koliko sem dokaz, pod pogojem, da družba, ki bremenijo kreditne kartice, kupec dobi še vedno prednost za vzvratno pristojbin.

So my last resort was to block the whole country and sending them to a Forbidden page that says “You don't have permission to access / on this server. Torej, moja zadnja možnost je bila, da blokirajo celo državo in jih pošiljali na stran Forbidden, ki pravi: "Nimate dovoljenja za dostop do / na tem strežniku. Additionally, a 403 Forbidden error was encountered while trying to use an ErrorDocument to handle the request”. Poleg tega je bilo 403 Forbidden pojavljajo napake, medtem ko poskuša uporabiti ErrorDocument za obravnavanje prošnje ". It did reduced the amount of chargebacks significantly and I didn't notice any drops on the sales because the legitimate buyers comes from other countries. To je zmanjšana količina chargebacks bistveno in nisem opazili kapljic na prodajo, saj kupci zakonito prihaja iz drugih držav.

To block a country using .htaccess, you must first need to know the IP address range but Block A Country and Country IP Blocks simplifies all that. Če želite blokirati z državo. Htaccess, morate najprej vedeti razpon IP naslov, vendar Block Država in državni IP Blocks poenostavlja vse to.

Block A Country is a free service that automatically generates a .htaccess with countries that you want to block. Polje Država je brezplačna storitev, ki samodejno generira. Htaccess z državami, ki jih želite blokirati. All you need to do is select the countries from the list and click the “Go” button. Vse kar morate storiti, je izbrati držav, iz seznama in kliknite "Go" gumb. You will then need to create a .htaccess file at the root of your public html folder and paste the codes to that file. Nato boste morali ustvariti. Htaccess datoteko v koren vašega javnega html mapi in prilepite kode za te datoteke. Do take note that the default code generated by Block A Country redirects the unwanted visitor to http://www.blockacountry.com/blocked.php Delati zalotiti pismo to Privzeta koda, ki ga Block Country preusmerja neželeno obiskovalca http://www.blockacountry.com/blocked.php

[ [ Visit Block A Country Obiščite Block Country ] ]

Country IP Blocks is similar to Block A Country but it allows you to choose CIDR (Classless Inter-Domain Routing), Netmask, IP Range, .htaccess deny, .htaccess allow, Decimal/CIDR, or Hex/CIDR. Country IP Blocks je podobna Block Country vendar vam omogoča, da izberete CIDR (brezrazredno Inter-Domain Routing), Netmask, IP Range,. Htaccess zanikati,. Htaccess omogočajo, Decimalno / CIDR, ali čarovnica / CIDR. It will also tell you what's the ISO code for the country, total networks and subnets in the list. Prav tako bo povedal, kaj je oznaka ISO za državo, skupno omrežij in podomrežij v seznamu.

[ [ Visit Country IP Blocks Obiščite Country IP Blocks ] ]

Once in a while the forum will be disturbed by a person named Gurjeet Singh Komal from Meerut, Uttar Pradesh India. Ko v medtem ko se bo forum, ki ga moti oseba z imenom Singh Gurjeet Komal od Meerut, Uttar Pradesh Indija. He was probably the biggest fan of this website but backfired and turned into the biggest enemy because he was banned for not following the forum rules even after several warnings. On je bil verjetno največji oboževalec te spletne strani, ampak backfired in spremenil v največji sovražnik, ker je bil prepovedan, ker niso spoštovale pravila foruma, tudi po več opozorilih. He'd sign up a new account and start creating new threads by posting nonsense. On bi se prijavite nov račun in začnete z ustvarjanjem nove teme, ki jih objavljate neumnosti. It's definitely unfair to block India from this site just because of him. To je zagotovo nepravično, da blokira Indijo s te strani ravno zaradi njega. As far as I know, there are many nice people from there too! Kolikor vem, je veliko ljudi iz lepo tam! Moreover it is also easy to get around this country banning restriction by using web proxy. Poleg tega je prav tako enostavno priti po tej državi, ki prepoveduje omejevanje s pomočjo spletnega proxy.

Technorati Tags: Technorati Tags: , , , , , , , ,