Neujahrsangebot 82% OFF
00
TAGEN
10
STUNDEN
00
MINUTEN
27
SEKUNDEN

How to block IP using .htaccess file?

Modified on:
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

  • Unbegrenzte Anzahl Websites
  • 24/7 Live Unterstützung
  • Einfacher Website-Builder
  • 2X WordPress optimierte Geschwindigkeit
  • 30-Tage Geld-Zurück-Garantie
Schnappen Sie sich den zeitlich begrenzten Deal!
ab
1
45
/Mon.
Save 82%
Beginnen