Uusaasta pakkumine 82% ALE
00
PÄEVA
14
TUNDI
17
MINUTIT
05
SEKUNDIT

How to block IP using .htaccess file?

Muudetud:
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

  • Piiramatult kodulehekülgi
  • 24/7 live klienditugi
  • Lihtne veebiehitustööriist
  • 2X WordPress'i Kiirus
  • 30-päevane raha-tagasi garantii
Võta hea pakkumine piiratud aja jooksul!
Alates
1
45
/kuus
Säästa 82%
Alusta