Deny Access by IP Address in VestaCP

To block access to websites from specific IP addresses, navigate to the Firewall section, accessible at the top of the panel (for the admin user). Then click on the plus icon (option "Add Rule").


Select the "DROP" action and specify the IP address from which you want to block access, as well as the ports to which you want to apply the block (usually 80 and 443, if restricting access to the website for this IP address is required).


Have more questions about Hosting?