# How to block ads from specific site?

**URL:** <https://discourse.pi-hole.net/t/how-to-block-ads-from-specific-site/42157>\
**Category:** Help\
**Created:** [December 27, 2020, 9:28pm UTC](https://discourse.pi-hole.net/t/how-to-block-ads-from-specific-site/42157 "2020-12-27T21:28:01Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![Lylat1an](https://discourse-cdn.pi-hole.net/letter_avatar_proxy/v4/letter/l/7c8e57/32.png) [@Lylat1an](https://discourse.pi-hole.net/u/Lylat1an)\
**Post date:** [December 27, 2020, 9:28pm UTC](https://discourse.pi-hole.net/t/how-to-block-ads-from-specific-site/42157/1 "2020-12-27T21:28:01Z")

</div>

I apologize if this has been asked before, I didn't see it it when I searched.

I just set up Pi-hole on my 4th-gen Raspberry Pi, and added some lists.

They're working well, but not on a specific site that hosts its own ads.

The site's ads all start with rv.sitename.net, the rest of the site seems to be on www.sitename.net.

Is there a way to block the "rv" parts from loading in that domain while allowing the rest of the site through?

I have read the Regular Expressions Tutorial, and either I'm not getting something or it's not working for me.

---

<div class="post-metadata">

**Author:** ![PA3DSS](https://discourse-cdn.pi-hole.net/user_avatar/discourse.pi-hole.net/pa3dss/32/39441_2.png) [@PA3DSS](https://discourse.pi-hole.net/u/PA3DSS)\
**Post date:** [December 27, 2020, 9:49pm UTC](https://discourse.pi-hole.net/t/how-to-block-ads-from-specific-site/42157/2 "2020-12-27T21:49:32Z")

</div>

> [@Lylat1an](#):
>
> rv.sitename.net

just blacklist this domain, what will happen ?

---

<div class="post-metadata">

**Author:** ![Lylat1an](https://discourse-cdn.pi-hole.net/letter_avatar_proxy/v4/letter/l/7c8e57/32.png) [@Lylat1an](https://discourse.pi-hole.net/u/Lylat1an)\
**Post date:** [December 27, 2020, 10:08pm UTC](https://discourse.pi-hole.net/t/how-to-block-ads-from-specific-site/42157/3 "2020-12-27T22:08:19Z")

</div>

I have the following three blacklists, and none of them are blocking the ads:

rv.sitename  
rv.sitename  
rv.sitename.net

---

<div class="post-metadata">

**Author:** ![PA3DSS](https://discourse-cdn.pi-hole.net/user_avatar/discourse.pi-hole.net/pa3dss/32/39441_2.png) [@PA3DSS](https://discourse.pi-hole.net/u/PA3DSS)\
**Post date:** [December 27, 2020, 10:14pm UTC](https://discourse.pi-hole.net/t/how-to-block-ads-from-specific-site/42157/4 "2020-12-27T22:14:53Z")

</div>

![image](https://discourse.pi-hole.net/uploads/default/original/3X/1/8/189c34bcd35c9e46f289034f1977339ba22bcb5d.png)  
click 'blacklist', add the domain you wat to blacklist, click on the blue button

---

<div class="post-metadata">

**Author:** ![Lylat1an](https://discourse-cdn.pi-hole.net/letter_avatar_proxy/v4/letter/l/7c8e57/32.png) [@Lylat1an](https://discourse.pi-hole.net/u/Lylat1an)\
**Post date:** [December 27, 2020, 10:27pm UTC](https://discourse.pi-hole.net/t/how-to-block-ads-from-specific-site/42157/5 "2020-12-27T22:27:26Z")

</div>

I now have `(\.|^)rv\.sitename\.net$` added to the list, but the ads are still coming through.

---

<div class="post-metadata">

**Author:** ![yubiuser](https://discourse-cdn.pi-hole.net/user_avatar/discourse.pi-hole.net/yubiuser/32/12100_2.png) [@yubiuser](https://discourse.pi-hole.net/u/yubiuser)\
**Post date:** [December 27, 2020, 11:07pm UTC](https://discourse.pi-hole.net/t/how-to-block-ads-from-specific-site/42157/6 "2020-12-27T23:07:26Z")

</div>

Than the ads are likely not coming from this domain, but maybe from `www.sitename.net/ads`?

---

<div class="post-metadata">

**Author:** ![jfb](https://discourse-cdn.pi-hole.net/user_avatar/discourse.pi-hole.net/jfb/32/4332_2.png) [@jfb](https://discourse.pi-hole.net/u/jfb)\
**Post date:** [December 28, 2020, 1:16am UTC](https://discourse.pi-hole.net/t/how-to-block-ads-from-specific-site/42157/7 "2020-12-28T01:16:10Z")

</div>

> [@How do I determine what domain an ad is coming from?](https://discourse.pi-hole.net/t/how-do-i-determine-what-domain-an-ad-is-coming-from/1522):
>
> Block ads or fix broken sites This FAQ is written in the context of finding out how to block an ad that isn't blocked automatically, but the same steps can be used to troubleshoot issues with sites that don't function properly. An example is that sometimes certain payment gateways try to collect metrics on the sale, but these domains are blocked by Pi-hole, so the payment cannot be processed. Also, some links send you through several referrers and if one of them is blocked, you may land on a b…

---

<div class="post-metadata">

**Author:** ![system](https://discourse.pi-hole.net/uploads/default/original/3X/7/c/7c8792f649eeb921c5d2b4c41564ffa873d9a2b8.png) [@system](https://discourse.pi-hole.net/u/system)\
**Post date:** [January 18, 2021, 1:16am UTC](https://discourse.pi-hole.net/t/how-to-block-ads-from-specific-site/42157/8 "2021-01-18T01:16:11Z")

</div>

This topic was automatically closed 21 days after the last reply. New replies are no longer allowed.
