Skip to Content
How to Block Any IP Address via an htaccess Rule
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.

Si desea bloquear una dirección IP, puede añadir las siguientes líneas a su archivo htaccess.

\r\n
order allow, deny\r\ndeny from IP-ADDRESS\r\nallow from all\r\n
\r\n

Reemplazamiento IP-ADDRESS con la IP que desea bloquear.

Did this guide solve it?Your feedback helps us improve the next answer.