Created
          December 7, 2017 13:43 
        
      - 
      
- 
        Save krasnuydyx/4ad392b645b5b926ebb5d1ef2fc9a5bd to your computer and use it in GitHub Desktop. 
    Varnish block ip
  
        
  
    
      This file contains hidden or 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
    
  
  
    
  | acl forbidden { | |
| "10.10.10.10"; | |
| } | |
| sub vcl_recv { | |
| if (client.ip ~ forbidden) { | |
| error 403 "Forbidden"; | |
| } | |
| } | 
  
    Sign up for free
    to join this conversation on GitHub.
    Already have an account?
    Sign in to comment