< All Topics

How to ban the IP address via .HTAccess?

If any person is trying to hack the website and you want to block their IP Address, then you should simply add this line to your .htaccess file.

Order allow, deny
Deny from IP-ADDRESS
Allow from all

Replace “IP address” with that address you need to block.

Scroll to Top