Knowledge Base

Date
August 28, 2023
Category
Security

How to Block Any IP Address via an htaccess Rule

If you want to block an IP Address, you can add the below lines to your htaccess file.

order allow, deny
deny from IP-ADDRESS
allow from all

Replace IP-ADDRESS with the IP you want to block.

Related: htaccess

Share this Post
frame frame

Supercharge Your Website!

Lightning-fast Speed, Robust Security, and Expert Support.

migrate