Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // Disable ESI request from external
- if (req.esi_level == 0 && req.url ~ "^/__esi__/") {
- return (synth(403, "Sorry, this content is not intented for you. Bye."));
- }
- // Disable nginx status page from external
- if (req.url ~ "^/nginx_status") {
- return (synth(403, "Sorry, this content is not intended for you."));
- }
- // Production setting:
- if (client.ip ~ badguys) {
- return (synth(403, "You are banned from this site. Please contact via a different client configuration or call us if you believe that this is a mistake."));
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement