Menu

How are HEAD requests counted?

lonb
2009-06-08
2017-02-02
  • lonb

    lonb - 2009-06-08

    I'd like to know how awstats accounts for HEAD requests? Specifically my concern is about our load balancers that are pinging the web servers with HEADs. I can not accurately block their IPs since they use 10.x.x.x IPs and those are used by many of our browsers (corporate LANs, etc.).

    I saw someone once asked about this (http://sourceforge.net/forum/message.php?msg_id=3558652), but there was no response

    Thoughts?

    • Lon
     
    • Jean-Luc

      Jean-Luc - 2009-06-08

      Hi,

      AWStats treats HEAD and GET requests exactly in the same way. If you don't like that, remove line 10634 in awstats.pl (version 6.9).

      Jean-Luc
      http://www.internetofficer.com/awstats/

       
      • lonb

        lonb - 2009-06-08

        Thanks!

         
  • Nemo

    Nemo - 2016-12-23

    I agree a configuration for this would be useful (local patches would make my sysadmin cry). Other people use mod_security rulesets: https://blog.flameeyes.eu/2011/01/referrer-and-awstats/

     
  • Arnaud de Klerk

    Arnaud de Klerk - 2017-02-02

    My website logs also suffer from a lot of HEAD requests which are actually spam. What is the current line I should remove in awstats.pl and indeed: It would be nice if this option would become available through configuration.

    /edit/ OK, that's line 18303 now in 7.5

     

    Last edit: Arnaud de Klerk 2017-02-02

Log in to post a comment.