Rui  
                
                  
                    November 17, 2021, 11:50am
                   
                  1 
               
             
            
              Hello, I’m running a white label self-hosted V5 instance and I need to redirect or block visitors from a certain country. I’m in a shared hosting environment with no access to apache’s geoip module.
Som I’m thinking of using this PHP Geolocation Class https://www.geoplugin.com/webservices/php 
I only have a  basic programming knowledge and reading the invoice ninja code I couldn’t find out in what file / files I should invoke this class.
Can someone help me, please
             
            
              
           
          
            
              
                hillel  
              
                  
                    November 17, 2021,  1:28pm
                   
                  2 
               
             
            
              Hi,
@david  can you please advise?
             
            
              1 Like 
            
           
          
            
              
                Rui  
              
                  
                    November 17, 2021,  1:52pm
                   
                  3 
               
             
            
              Thank you! Nice piece of software btw. I did an excellent review on G2 because I really like it https://www.g2.com/products/invoice-ninja/reviews/invoice-ninja-review-4964859 
             
            
              1 Like 
            
           
          
            
              
                hillel  
              
                  
                    November 17, 2021,  2:07pm
                   
                  4 
               
             
            
              Thank you, it’s a big help to us!
             
            
              1 Like 
            
           
          
            
              
                david  
              
                  
                    November 17, 2021,  9:25pm
                   
                  5 
               
             
            
              @Rui 
I would geo block at the edge using a service like Cloudflare that can provide you a proper WAF, this isn’t really the job of the application.