Vesta Control Panel - Forum

Community Forum

Skip to content

Advanced search
  • Quick links
    • Main site
    • Github repo
    • Google Search
  • FAQ
  • Login
  • Register
  • Board index Main Section General Discussion
  • Search

Close ip access of my site

General questions about VestaCP
Post Reply
  • Print view
Advanced search
2 posts • Page 1 of 1
Augen
Posts: 3
Joined: Fri Sep 27, 2019 2:17 pm

Os: Ubuntu 17x
Web: apache + nginx
Close ip access of my site
  • Quote

Post by Augen » Fri Sep 27, 2019 10:00 pm

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
Top

NordicSnowman
Posts: 10
Joined: Fri Sep 27, 2019 8:34 pm

Os: Debian 8x
Web: apache + nginx
Re: Close ip access of my site
  • Quote

Post by NordicSnowman » Sun Sep 29, 2019 9:37 pm

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)
Top


Post Reply
  • Print view

2 posts • Page 1 of 1

Return to “General Discussion”



  • Board index
  • All times are UTC
  • Delete all board cookies
  • The team
Powered by phpBB® Forum Software © phpBB Limited
*Original Author: Brad Veryard
*Updated to 3.2 by MannixMD
 

 

Login  •  Register

I forgot my password