This plugin extends the standard Piwik authentication to use Basic HTTP Authentication. It lets you login to Piwik using the HTTP Auth mechanism.

How do I setup HTTP Auth using Piwik?

  • Login your Piwik as Super User. Click Settings, then click Marketplace.
  • Install the LoginHttpAuth plugin, then click Activate.
  • Click Settings, then click Users.
    • Check that there is a user in Piwik for each person that should have access to Piwik.
  • Enable HTTP Auth on the Piwik on your web server.

    For example, if you are using Apache webserver:

    • generate a .htpasswd file with your encrypted logins and passwords
    • copy this example .htaccess file in the root directory of Piwik, and set the path to your .htpasswd file
  • When you go to Piwik, you will see the Authentication window. Congratulations! You are now using HTTP Auth to protect Piwik.
  • 1.0.4 - Support for LemonLDAP::ng and HTTP_AUTH_USER
  • 1.0.3 - Fixing regression w/ Piwik 2.15 when authenticating by token auth or by username/password (w/o an HTTP server).
  • 1.0 - First public release compatible with Piwik 2


  • 1.0.5 from Oct 6th 2016
  • 3.0.0 from Sep 13th 2016
  • 1.0.4 from May 27th 2016
  • 1.0.3 from Oct 29th 2015
  • 1.0.2 from Feb 16th 2015
  • 1.0.1 from Feb 10th 2014
  • 1.0 from Feb 10th 2014

View and download this plugin for a specific Piwik version: