Jaunā gada piedāvājums 82% ATLAIDE
00
DIENAS
11
STUNDAS
16
MINŪTES
41
SEKUNDES

How to block IP using .htaccess file?

Rediģēts:
htaccess country blocked block IP IP block

You may block access to your website from specific IP addresses using .htaccess file.

You need to create this file in your public_html folder and add these example lines:

order allow,deny deny from 127.0.0.1 allow from all 

These lines will block access for all users using 127.0.0.1 IP address. Just change the 127.0.0.1 to the IP you want to block.

You can download the list of each country IPs from following link: https://www.countryipblocks.net/country_selection.php

  • Neierobežots skaits mājaslapu
  • 24/7 tiešais atbalsts
  • Viegls mājaslapu konstruktors
  • 2X WordPress optimizēts ātrums
  • 30 dienu naudas atgriešanas garantija
Noķer ierobežoto piedāvājumu!
No
1
45
/mēn.
Ietaupi 82%
Sāc tūlīt