Ignore a URL

I have had someone ‘steal’ the code from one of my sites and publish the coder on their own server as their own site.

Unfortunately they have kept the tracking code on there (hence I found out what they had done).

Is there a way to remove the data from their domain and also block data coming in from their domain?

Not possible currently, but thereis a feature request: New setting: Piwik to track only 'known' page URLs · Issue #1918 · matomo-org/matomo · GitHub

This should be possible with a clever .htaccess block using mod_rewrite and regexp.

The url structure for the call the tracker contains the &url= parameter. Compare the base url to your actual url and send them to a 401 (access denied) if they don’t match.

Example tracker call:


http://piwik.example.org/piwik.php?action_name=Pagename&idsite=5&rec=1&r=123&h=1&m=2&s=3&url=http%3A%2F%test.org%2F&_id=12f9257551dc9968&_idts=1328818209&_idvc=1&_idn=0&_refts=0&_viewts=1322912209&pdf=1&qt=0&realp=0&wma=0&dir=0&fla=1&java=1&gears=0&ag=0&res=1280x1024&cookie=1