제한 시간 제안 - 895원/month
00
DAYS
03
HOURS
21
MINUTES
35
SECONDS
시작하세요
×

지식저장소

Find articles about information features, troubleshooting guides,
and other technical information related to the hosting service Hostinger.

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

  • 쉬운 웹 사이트 빌더
  • 99.9 % 가동 시간 보장
  • 24/7 라이브 지원
  • Powerful Control Panel
  • 30 일 환불 보증
Limited Time Special Offer!
부터
895
/월
구하다 90%
시작하세요