How to block multiple IP addresses in .htaccess

October 26, 2018

If you need to block more than one IP address you can do this quite easily. Put each one of the IP addresses next to each other with a space in between.

Deny from x.x.x.x y.y.y.y z.z.z.z

(Replace the x.x.x.x / y.y.y.y / z.z.z.z with the IP addresses that you wish to block access to)