Skip to content

varnish: Update useragent blocklist

Guillaume Samson requested to merge update_useragent_blocklist into production

These modifications will update the useragent blocklist on moma.

octocatalog-diff
diff origin/production/moma.softwareheritage.org current/moma.softwareheritage.org
*******************************************                                                                                    
  File[/etc/varnish/includes/20_useragent_blocklist.vcl] =>                                                                    
   parameters =>                                                                                                                                                                                                                                              
     content =>                                                                                                                                                                                                                                               
      @@ -7,4 +7,5 @@                                                                                                                                                                                                                                         
       sub vcl_recv {                                                                                                                                                                                                                                         
           if (                                                                                                                                                                                                                                               
      +        req.http.User-Agent ~ "(?i)Bytespider" ||                                                                                                                                                                                                      
               req.http.User-Agent ~ "(?i)ClaudeBot" ||                                                                        
               req.http.User-Agent ~ "(?i)facebookexternalhit" ||                         
*******************************************
  Profile::Varnish::Vcl_include[useragent_blocklist] =>
   parameters =>
     content =>
      @@ -7,4 +7,5 @@
       sub vcl_recv {    
           if (               
      +        req.http.User-Agent ~ "(?i)Bytespider" ||                                                                       
               req.http.User-Agent ~ "(?i)ClaudeBot" ||                                                                        
               req.http.User-Agent ~ "(?i)facebookexternalhit" ||
*******************************************
  Varnish::Vcl[/etc/varnish/includes/20_useragent_blocklist.vcl] =>
   parameters =>
     content =>
      @@ -7,4 +7,5 @@
       sub vcl_recv {
           if (            
      +        req.http.User-Agent ~ "(?i)Bytespider" ||                                                                       
               req.http.User-Agent ~ "(?i)ClaudeBot" ||                                                                        
               req.http.User-Agent ~ "(?i)facebookexternalhit" ||
*******************************************
*** End octocatalog-diff on moma.softwareheritage.org

Merge request reports