Specialerbjudande - från kr9,00/mån
00
DAGAR
18
TIMMAR
31
MINUTER
08
SEKUNDER
Kom igång
×

Kunskapsbas

Hitta artiklar om funktioner och felsökningsguider,
och andra tekniska information om Hostingers webbhotelltjänst.

How to block IP using .htaccess file?

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

  • Lättanvänt Website Builder
  • 99.9% driftsäkerhet
  • 24/7 Live-support
  • Powerful Control Panel
  • 30 dagars öppet köp
Specialerbjudande!
Från
kr
9
00
/mån
Spara 90%
Kom igång