---
title: "Discussion on \"Prevent Ad-blockers from blocking Mixpanel [Without Nginx!]\" | Hashnode"
description: "Discussion on \"Prevent Ad-blockers from blocking Mixpanel [Without Nginx!]\". Most ad blockers block Mixpanel from sending events to the server. Since the number of people using ad-blockers or privacy-focused browsers is increasing, there is a dedicated post on Mixpanel's website to address this. However, the solutions they pr..."
url: "https://hashnode.com/posts/prevent-ad-blockers-from-blocking-mixpanel-without-nginx/62daef1299a21b6b5b5eb684"
---

[Feed](https://hashnode.com/feed) /

Discussion

# [Prevent Ad-blockers from blocking Mixpanel \[Without Nginx!\]](https://blog.pranavp.com.np/prevent-ad-blockers-from-blocking-mixpanel-without-nginx?utm_source=hashnode&utm_medium=feed)

Most ad blockers block Mixpanel from sending events to the server. Since the number of people using ad-blockers or privacy-focused browsers is increasing, there is a dedicated post on Mixpanel's website to address this. However, the solutions they pr...

Jul 22, 2022 · 2 min read · blog.pranavp.com.np  
Updated Aug 21, 2023  
Read the article

-   [#cloudfront](https://hashnode.com/tag/cloudfront)
-   [#cloudflare](https://hashnode.com/tag/cloudflare)
-   [#reverse-proxy](https://hashnode.com/tag/reverse-proxy)
-   [#mixpanel](https://hashnode.com/tag/mixpanel)

## Written by

[dimm3r](https://hashnode.com/@dimm3r)

@dimm3r

  
[View profile](https://hashnode.com/@dimm3r)

Eat Sleep Hack Repeat

I like breaking things apart.

## Responses 1

Markdown supported · ⌘↵ to post

[José Alves](https://hashnode.com/@jalves)

[Jan 22, 2024](https://hashnode.com/posts/prevent-ad-blockers-from-blocking-mixpanel-without-nginx/62daef1299a21b6b5b5eb684/comment/65ae92cd36b306a1241d41ff)

Hi! Tried Cloudfront approach but this solution does not appear to be working. 1 - there's a missing property override as per Mixpanel documentation docs.mixpanel.com/docs/tracking-methods/sdks/javascript#tracking-via-proxy MIXPANEL\_CUSTOM\_LIB\_URL 2- there is a need to forward 3 request headers: X-Real-IP, X-Forwarded-For and X-Forwarded-Host. The first one is not allowed by cloudfront.. without this set we cannot include the library.
