• Hi,

    I use the https://github.com/piwik/plugin-LoginHttpAuth plugin for my piwik installation.

    The tracking works, but the connection to wp-piwik not for showing the tracking results within wordpress.

    Have anyone an idea, how the rule for my htaccess file would like for getting the connection work to wp piwik even with http authentification?

    Till now it looks like:

    # Restrict outside access
    AuthName "Admin Auth"
    AuthType Digest
    AuthDigestProvider file
    AuthUserFile /home/ssl/.pwdigest
    Require user deinemudda
    
    <Files "*">
        Require valid-user
        Order deny,allow
        Deny from all
        Allow from ?!
    </Files>
    
    <Files ~ "^piwik\.(js|php)|robots\.txt$">
        Allow from all
        Satisfy any
        Require all granted
    </Files>

    Best,

    Ben

    https://www.ads-software.com/plugins/wp-piwik/

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author braekling

    (@braekling)

    You should ask the plugin’s author how to use the Piwik API in combination with his HttpAuth plugin. Just two ideas on my side: Add user & password to the Piwik URL (https://user:pass@url) – but this may cause new security issues. Or disable HttpAuth for requests from the WordPress server’s IP.

    Thread Starter benhartwich

    (@yoursql719)

    I′ve tried to allow request from my server with setting the IP adress at Allow from

    <Files "*">
        Require valid-user
        Order deny,allow
        Deny from all
        Allow from ?!
    </Files>

    but it doesn′t work. I can′t see any statistics at wp piwik. I′ve deactivated this third party plugin, but how are the wp piwik statistics grabbed from piwik?
    Shouldn′t it work with the code above?

    Plugin Author braekling

    (@braekling)

    WP-Piwik gets the stats using HTTP requests (if you are using the REST API).

    But you should also keep sure that users visiting your site are allowed to load the tracking code delivered by Piwik. Maybe its a work-around to use the proxy script tracking code, so only your server has to connect to Piwik.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘HTTP Auth rule for piwik’ is closed to new replies.