Skip to content

Commit

Permalink
Deny access to admin URLs
Browse files Browse the repository at this point in the history
  • Loading branch information
portchris committed Dec 2, 2020
1 parent 7a9bcbc commit 228ddfa
Showing 1 changed file with 18 additions and 0 deletions.
18 changes: 18 additions & 0 deletions env/nginx/webserver/conf.d/www.naturalremedy.company.template
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,24 @@ server {
index index.php;
include /etc/nginx/defaults/magento1.conf;
include /etc/nginx/global/php72.live.conf;

location ~ /(nradmin|admin) {

# Convert Digital - Melbourne
allow 110.175.220.170;

# Convert Digital - VPN
allow 149.28.169.124;

# Convert Digital - Developers
allow 149.28.179.77;

# Deny all else
deny all;

return 403;
}

location / {
try_files $uri $uri/ /index.php$is_args$args;
}
Expand Down

0 comments on commit 228ddfa

Please sign in to comment.