Put blocked-all-ips.conf
file to /etc/nginx/conf.d/users/{user}
directory and then reload nginx (nginx -s reload
)
Created
April 10, 2022 10:30
-
-
Save yeganemehr/b6fbab44d92134eb14109327819b91f2 to your computer and use it in GitHub Desktop.
Block traffic to cpanel-nginx websites
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
allow 164.132.141.251; # Jeyserver VPN Public IP | |
deny all; | |
error_page 403 /custom_403.html; | |
location = /custom_403.html { | |
root /etc/suspend-root; | |
allow all; | |
internal; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment