Page 1 of 1

Close ip access of my site

Posted: Fri Sep 27, 2019 10:00 pm
by Augen
Hi, can I directly in vesta cp,
to deny access to my site by server ip address? What would entering my site ip in the search bar not open my site, or give an error?
thank

Re: Close ip access of my site

Posted: Sun Sep 29, 2019 9:37 pm
by NordicSnowman
htaccess is probably the easiest solution - just add the IP;s you want to have access and create a custom 403 error page to show for users who are locked out from accessing the site.
(either deny from all and allow ip;s, or allow from all and deny ip;s, either way works)