默认情况下,Matomo(Piwik)的追踪代码都包含Matomo的服务器地址。对于大多数用户来说,这没什么问题,但有些人(如竞争对手)就可以运行一个脚本找到所有源码中包含你的matomo服务器地址的网站。这样Ta就可以找到你的matomo实例追踪的所有网站。
欢迎加入Matomo中文网官方QQ群255820112(点击滚动至本页末可扫描二维码),随时提问,有问必答。
在一些情况下,你可能想完全隐藏你的matomo网址,同时不影响在你的matomo实例中追踪多个网站。
通过修改matomo的javascript代码,这是可以实现的。我们可以把你的matomo服务器地址修改成“代理piwik.php脚本”。不过这个piwik.php脚本必须被上传到所有被追踪的网站,它可以将所有请求秘密转发到你的matomo服务器。
- 关于如何安装脚本的文档位于piwik/tracker-proxy. 在此有以下提醒
- tracker-proxy中的piwik.php文件名称可以修改成任意名称
- config.php配置中的$PIWIK_URL表示matomo实例的网址(最后切记别忘了斜杠),$PROXY_URL表示tracker-proxy中piwik.php对应的网址(去掉piwik.php)
- 仔细按照文档的说明,你就可以在不暴露你的maotmo服务器地址的情况追踪所有网站,这样就没有人会发现并攻击你的maotmo服务器,同时也不会知道你的matomo服务承载了哪些网站的追踪任务了。
具体步骤如下
具体步骤如下
1. 在matomo服务器中使用超级用户登录并创建用户,例如tracking_api,然后为相应网站授权为admin;然后登录用户tracking_api, 然后在左边菜单中点击”API”,即可找到对应的token_auth
2. 下载piwik.php, proxy.php, matomo-proxy.php, plugins/HeatmapSessionRecording/configs.php, 并上传到被追踪网站的特定目录(如http://www.trackedsite.com/tracking/)
3. 修改config.php文件中的参数
• $PIWIK_URL Matomo服务器地址,一定不要忘记最后的斜杠
• $PROXY_URL tracker-proxy中piwik.php文件对应的网址(去掉piwik.php),如http://www.trackedsite.com/tracking/
• $TOKEN_AUTH 对应API用户的授权token
4. 客户端代码如下
<script type=”text/javascript”>
var _paq = _paq || [];
_paq.push([‘trackPageView’]);
_paq.push([‘enableLinkTracking’]);
(function() {
var u=”// www.trackedsite.com /tracking”;
_paq.push([“setTrackerUrl”, u+”piwik.php”]);
_paq.push([“setSiteId”, “trackedsite-id”]);
var d=document, g=d.createElement(“script”), s=d.getElementsByTagName(“script”)[0];
g.type=”text/javascript”; g.async=true; g.defer=true; g.src=u+”piwik.php”; s.parentNode.insertBefore(g,s);
})();
</script>
I don’t think the title of your article matches the content lol. Just kidding, mainly because I had some doubts after reading the article.
pharmacies online: online pharmacy lortab – flomax pharmacy
viagra for females: VGR Sources – cheap viagra mastercard
viagra pills canada: VGR Sources – get viagra prescription online
brand viagra 50 mg: VGR Sources – viagra tablets australia
viagra online purchase usa female viagra without prescription best price for viagra in uk
generic viagra online canada: sildenafil 100 canada – female viagra drugstore
sildenafil 50 mg canada: sildenafil 20 mg online prescription – us viagra over the counter
https://vgrsources.com/# viagra 100mg tablet online
viagra 500mg price: buy viagra online price – sildenafil 20 mg over the counter
prescription viagra cost sildenafil 25 viagra online us pharmacy
preço viagra 50mg: how to buy viagra in india – best price for real viagra
cheap generic viagra canadian pharmacy: order generic viagra online usa – viagra tablets online in india
sildenafil tablets india: viagra soft tabs – cheap viagra online uk
order viagra for women: buy genuine viagra online canada – viagra for sale online usa
sildenafil 10 mg daily viagra men viagra online in usa
sildenafil nz pharmacy: VGR Sources – 3 viagra
https://vgrsources.com/# viagra fast shipping usa
viagra website: VGR Sources – buy generic viagra united states
sildenafil 100mg sale: viagra in india cost – viagra 50 mg price in usa
viagra generic cheap: cost of viagra australia – cheap viagra 50mg
sildenafil tablets 120 mg how can i get generic viagra buy sildenafil online safely
order viagra india: cheap generic viagra online uk – where to buy women viagra
online viagra order india: VGR Sources – generic viagra otc
viagra price in mexico: genuine viagra – canadian viagra paypal
best female viagra tablets in india where can i buy viagra cheap buy viagra online canada pharmacy
https://vgrsources.com/# real viagra online canadian pharmacy
where to buy cheap generic viagra: VGR Sources – how to order sildenafil
low price viagra: VGR Sources – viagra how much does it cost
buy cheap viagra pills online: VGR Sources – where can you buy generic viagra
canada viagra otc VGR Sources sildenafil 100mg coupon
sildenafil 50mg tablets uk: VGR Sources – viagra samples
where to buy viagra online: 35 viagra – where can i order generic viagra online
online viagra india: cheap sildenafil citrate tablets – can you order viagra online in canada
sildenafil tablets 100 mg VGR Sources sildenafil 20mg daily
where to get generic viagra: buy viagra online paypal – buy viagra super active
https://vgrsources.com/# female viagra online purchase in india
viagra 500mg tablet: VGR Sources – sildenafil tablets 100mg online
generic viagra without a prescription: VGR Sources – discount viagra sale
how to buy female viagra in india generic viagra online 50mg buy generic viagra online india
viagra online purchase: VGR Sources – how do i get viagra without a prescription
buy viagra in usa online: VGR Sources – cheap brand viagra 100mg
buy generic viagra 50mg: VGR Sources – cheap generic viagra 100mg canada
sildenafil 50mg canada generic viagra sildenafil citrate where to get viagra over the counter
viagra over the counter cost: VGR Sources – generic viagra for sale in usa
https://vgrsources.com/# buy female viagra in india
viagra generic online usa: cheap prescription viagra online – viagra 20mg generic
sildenafil soft tabs: VGR Sources – where can buy viagra
can i buy generic viagra in canada: VGR Sources – female viagra online india
viagra for women pills viagra usa over the counter sildenafil online uk
100mg viagra canada: generic viagra online mexico – online pharmacy viagra 100mg
viagra men: VGR Sources – canadian rx viagra
buy viagra generic: VGR Sources – generic viagra australia
viagra brand coupon VGR Sources viagra generic 50 mg
https://vgrsources.com/# order sildenafil 20 mg
cost of 1 viagra pill: VGR Sources – real viagra without prescription
cheap viagra free shipping: VGR Sources – viagra for women pills
generic viagra soft tablets: VGR Sources – sildenafil citrate canada
sildenafil generic 100 mg VGR Sources viagra soft
compare viagra prices uk: viagra pharmacy cost – viagra 100mg price
sildenafil 1mg: VGR Sources – viagra online hong kong
best female viagra pills: viagra 100mg buy online – price of 100mg viagra
sildenafil 85 how to buy generic viagra can i buy viagra over the counter nz
over the counter viagra for women: VGR Sources – sildenafil pills sale
viagra 100mg price in india online: viagra 20 – how much is sildenafil 20 mg
https://vgrsources.com/# sildenafil 50mg tablets uk
viagra usa: average cost of viagra 50mg – viagra india pharmacy
brand viagra australia viagra tablet price in india how much is a viagra pill cost
Semaglu Pharm: Semaglu Pharm – SemagluPharm
Rybelsus 3mg 7mg 14mg: rybelsus weight loss cost – п»їBuy Rybelsus online USA
Rybelsus 3mg 7mg 14mg: SemagluPharm – SemagluPharm
SemagluPharm does rybelsus cause fatigue FDA-approved Rybelsus alternative
Rybelsus online pharmacy reviews: semaglutide rybelsus – rybelsus rash
Semaglu Pharm: rybelsus used for weight loss – SemagluPharm
http://crestorpharm.com/# side effects of crestor rosuvastatin 10 mg
Crestor Pharm: CrestorPharm – Crestor Pharm
SemagluPharm Semaglu Pharm Semaglu Pharm
PredniPharm: Predni Pharm – Predni Pharm
side effects of crestor vs lipitor: Best price for Crestor online USA – Crestor Pharm
https://lipipharm.shop/# Order cholesterol medication online
Best price for Crestor online USA: CrestorPharm – Crestor Pharm
Semaglu Pharm does rybelsus cause dizziness No prescription diabetes meds online
Semaglu Pharm: Semaglu Pharm – se puede tomar rybelsus y metformina juntos
Semaglu Pharm: SemagluPharm – semaglutide and adderall
Lipi Pharm LipiPharm Lipi Pharm
CrestorPharm: Crestor Pharm – Crestor Pharm
cost of lipitor 10 mg: lipitor and dementia – LipiPharm
https://lipipharm.shop/# Lipi Pharm
Crestor Pharm: what time of day should i take rosuvastatin – rosuvastatin generic price
Crestor Pharm: crestor and hair loss in women – Generic Crestor for high cholesterol
Crestor Pharm CrestorPharm CrestorPharm
SemagluPharm: SemagluPharm – rybelsus para bajar de peso
Affordable Lipitor alternatives USA: Lipi Pharm – LipiPharm
Predni Pharm: compare prednisone prices – 5mg prednisone
PredniPharm cheap prednisone online Predni Pharm
https://crestorpharm.com/# Crestor Pharm
Affordable cholesterol-lowering pills: does crestor cause hair loss – Generic Crestor for high cholesterol
stopping crestor abruptly: CrestorPharm – Crestor Pharm
Affordable Lipitor alternatives USA atorvastatin liver damage Atorvastatin online pharmacy
SemagluPharm: No prescription diabetes meds online – Semaglu Pharm
atorvastatin 10 mg price walmart: lipitor generic price – Affordable Lipitor alternatives USA
prednisone 20mg online pharmacy: where can i buy prednisone – Predni Pharm
Generic Lipitor fast delivery Lipi Pharm LipiPharm
CrestorPharm: Crestor Pharm – side effect of rosuvastatin
http://semaglupharm.com/# Semaglu Pharm
FDA-approved Rybelsus alternative: Semaglu Pharm – SemagluPharm
Semaglu Pharm Semaglu Pharm Rybelsus 3mg 7mg 14mg
Semaglu Pharm: Semaglu Pharm – Safe delivery in the US
No RX Lipitor online: can i just stop taking lipitor – LipiPharm
Semaglu Pharm SemagluPharm Online pharmacy Rybelsus
LipiPharm: LipiPharm – lipitor classification
https://prednipharm.shop/# cortisol prednisone
switching from lipitor to crestor Lipi Pharm Lipi Pharm
Predni Pharm: Predni Pharm – Predni Pharm
Crestor 10mg / 20mg / 40mg online: CrestorPharm – Generic Crestor for high cholesterol
Lipi Pharm Online statin drugs no doctor visit LipiPharm
how long does it take atorvastatin to get out of your system LipiPharm atorvastatin and back pain
https://lipipharm.com/# what is the brand name for atorvastatin
https://semaglupharm.com/# semaglutide weight loss first week
LipiPharm: Safe atorvastatin purchase without RX – Lipi Pharm
No prescription diabetes meds online: Semaglu Pharm – Semaglu Pharm
can i stop lipitor cold turkey LipiPharm Order cholesterol medication online
http://semaglupharm.com/# average weight loss on rybelsus
atorvastatin manufacturers in usa: Lipi Pharm – Safe atorvastatin purchase without RX
what tier drug is atorvastatin: Lipi Pharm – п»їBuy Lipitor without prescription USA
https://semaglupharm.shop/# what is semaglutide
SemagluPharm SemagluPharm Semaglutide tablets without prescription
https://lipipharm.com/# LipiPharm
SemagluPharm: Semaglu Pharm – FDA-approved Rybelsus alternative
Semaglu Pharm: Where to buy Semaglutide legally – rybelsus pastillas
http://semaglupharm.com/# Online pharmacy Rybelsus
CrestorPharm Crestor Pharm Crestor Pharm
Predni Pharm: Predni Pharm – PredniPharm
LipiPharm: atorvastatin side effects in men – LipiPharm
https://semaglupharm.com/# Semaglu Pharm
Discreet shipping for Lipitor lipitor discount card LipiPharm
https://crestorpharm.shop/# Crestor Pharm
Crestor Pharm: Safe online pharmacy for Crestor – side effect of rosuvastatin
can you buy prednisone online uk: buy prednisone online paypal – Predni Pharm
https://semaglupharm.com/# FDA-approved Rybelsus alternative
Semaglu Pharm SemagluPharm Semaglu Pharm
PredniPharm: can you buy prednisone over the counter in mexico – Predni Pharm
Online statin therapy without RX: CrestorPharm – CrestorPharm
https://semaglupharm.com/# how long does it take to lose weight on semaglutide
CrestorPharm Online statin therapy without RX Crestor Pharm
http://crestorpharm.com/# CrestorPharm
prednisone price canada: PredniPharm – pharmacy cost of prednisone
https://semaglupharm.com/# is semaglutide covered by medicaid
Crestor Pharm: CrestorPharm – CrestorPharm
can you take rybelsus and mounjaro together Where to buy Semaglutide legally rybelsus pregnancy
https://semaglupharm.com/# SemagluPharm
generic rosuvastatin 20 mg: rosuvastatin images – CrestorPharm
Semaglu Pharm: SemagluPharm – Where to buy Semaglutide legally
Crestor home delivery USA rosuvastatin moderate intensity dose Crestor Pharm
https://semaglupharm.com/# Semaglu Pharm
prednisone for dogs: Predni Pharm – 200 mg prednisone daily
PredniPharm: PredniPharm – prednisone oral
https://crestorpharm.com/# difference between crestor and lipitor
Semaglu Pharm Semaglu Pharm SemagluPharm
https://semaglupharm.com/# SemagluPharm