# Request: show regex, responsible for blocking

**URL:** https://discourse.pi-hole.net/t/request-show-regex-responsible-for-blocking/27656
**Category:** Beta 5.0
**Created:** [January 30, 2020, 9:07am UTC](https://discourse.pi-hole.net/t/request-show-regex-responsible-for-blocking/27656 "2020-01-30T09:07:41Z")
**Posts on this page:** 10
**Page:** 3

<div class="post-metadata">

### Author: ![jpgpi250](https://discourse-cdn.pi-hole.net/user_avatar/discourse.pi-hole.net/jpgpi250/32/286_2.png) [@jpgpi250](https://discourse.pi-hole.net/u/jpgpi250)
#### Post date: [February 14, 2020, 9:28pm UTC](https://discourse.pi-hole.net/t/request-show-regex-responsible-for-blocking/27656/50 "2020-02-14T21:28:40Z")

</div>

> [@DL6ER](#):
>
> to get the expected CNAME links. There is a bit of additional bookkeeping FTL needs to do here for this to work.
> 
> I also updated the web code slightly for an overall more uniform experience.

**YOU NAILED IT... GREAT WORK**

 ![image](https://discourse.pi-hole.net/uploads/default/original/2X/7/7d0493c9f0b06f41f739db625f83b5ac7dbd757b.png)  
 ![image](https://discourse.pi-hole.net/uploads/default/original/2X/c/cad619f53f824fc411a3c2f5e8d52e04d7057020.png)  
and  
 ![image](https://discourse.pi-hole.net/uploads/default/original/2X/3/378ceb0237634f7741ef5a88cac6162dc65ad0b4.png)  
 ![image](https://discourse.pi-hole.net/uploads/default/original/2X/5/532217e2b0f11165daac8e43fbdeba2b43c742e2.png)

I'll keep this running until after the weekend, to ensure there are no side effects or unexpected FTL crashes, but I'm confident! Hope to see this in beta5 soon.

**Thanks again for your time, dedication, effort, persistence, …**

`edit`  
If somebody is going to write a manual on how to use this great new feature, you should emphasize CTRL clicking the link will open the group management page in a new tab, which makes life even easier.  
`/edit`

---

<div class="post-metadata">

### Author: ![DL6ER](https://discourse-cdn.pi-hole.net/user_avatar/discourse.pi-hole.net/dl6er/32/281_2.png) [@DL6ER](https://discourse.pi-hole.net/u/DL6ER)
#### Post date: [February 15, 2020, 6:32am UTC](https://discourse.pi-hole.net/t/request-show-regex-responsible-for-blocking/27656/52 "2020-02-15T06:32:14Z")

</div>

> [@jpgpi250](#):
>
> If somebody is going to write a manual on how to use this great new feature, you should emphasize CTRL clicking the link will open the group management page in a new tab, which makes life even easier.

What happens if you click normally on the link? I designed it in such a way that is _should_ open a new tab. I'm not using HTML `<a>` at all in this code.

---

<div class="post-metadata">

### Author: ![jpgpi250](https://discourse-cdn.pi-hole.net/user_avatar/discourse.pi-hole.net/jpgpi250/32/286_2.png) [@jpgpi250](https://discourse.pi-hole.net/u/jpgpi250)
#### Post date: [February 15, 2020, 7:15am UTC](https://discourse.pi-hole.net/t/request-show-regex-responsible-for-blocking/27656/53 "2020-02-15T07:15:03Z")

</div>

> [@DL6ER](#):
>
> What happens if you click normally on the link?

I use Edge (NOT Edge chromium yet) When I click on the link, the domain management page opens in the same tab (replaces the queries page). I use a wheel mouse. I normally open a link using a wheel click, which always opens the link in a new tab, but that doesn't work in the pihole web interface.  
Also tested with firefox. The wheel click also doesn't work, but a normal click DOES open the domain management page in a new tab, so t **he behavior is browser dependent**.

---

<div class="post-metadata">

### Author: ![DL6ER](https://discourse-cdn.pi-hole.net/user_avatar/discourse.pi-hole.net/dl6er/32/281_2.png) [@DL6ER](https://discourse.pi-hole.net/u/DL6ER)
#### Post date: [February 15, 2020, 7:25am UTC](https://discourse.pi-hole.net/t/request-show-regex-responsible-for-blocking/27656/54 "2020-02-15T07:25:26Z")

</div>

> [@jpgpi250](#):
>
> t **he behavior is browser dependent**

Okay, so this is something we cannot/should not do much about. The events are standard DataTables events and if Edge decides to handle them differently than the majority of other browsers, then we should wait for either DataTables or (rather!) the browser maintainer to fix this misbehavior.

---

<div class="post-metadata">

### Author: ![DL6ER](https://discourse-cdn.pi-hole.net/user_avatar/discourse.pi-hole.net/dl6er/32/281_2.png) [@DL6ER](https://discourse.pi-hole.net/u/DL6ER)
#### Post date: [February 15, 2020, 11:05am UTC](https://discourse.pi-hole.net/t/request-show-regex-responsible-for-blocking/27656/56 "2020-02-15T11:05:17Z")

</div>

> [@anon55913113](#):
>
> Looking at the screen I noticed that it states " **Apply filtering on click on Type, Domain, and Clients**" and should that not be " **Apply filtering on click on Type, Domain or Client**" at the bottom of the page?

Well, if it is `and` or `or` doesn't really matter, it depends on your point of view:

- `and`: They all offer this feature
- `or`: You can click on any one of them

> [@anon55913113](#):
>
> I am missing the chain symbol especially if you are opening up a new page. When you are using a tablet or phone you will not get information shown so you only discover that function when tapping it by accident.

Hmm, the link icon is a bit distracting in my view, how about underlining the text to symbolize it has a special meaning?

> [@anon55913113](#):
>
> **file://…** and file, should be written as **file:///…** with three forward slashes.

No, `file://` is the "protocol". In your example,

> [@anon55913113](#):
>
> file:///home/pi/blocklist.txt

two things are connected `file://` _and_ `/home/pi/blocklist.txt`. You see that the third slash belongs to the path and not the protocol of the address so `file:/` is indeed correct.

---

<div class="post-metadata">

### Author: ![jpgpi250](https://discourse-cdn.pi-hole.net/user_avatar/discourse.pi-hole.net/jpgpi250/32/286_2.png) [@jpgpi250](https://discourse.pi-hole.net/u/jpgpi250)
#### Post date: [February 15, 2020, 11:14am UTC](https://discourse.pi-hole.net/t/request-show-regex-responsible-for-blocking/27656/57 "2020-02-15T11:14:04Z")

</div>

> [@DL6ER](#):
>
> Hmm, the link icon is a bit distracting in my view

**I agree** , furthermore, if you are going to change this, you'll need to change this in a lot of places (all entries that have an underlying link), otherwise, You'll be deviating from the **overall more uniform experience** , that has been achieved with the latest update.

> [@anon55913113](#):
>
> On import (pihole -g) I get a warning but the import is done:  
> `Status: local is blocked by . Using DNS on 127.0.0.1#53 to download file:///home/pi/blocklist.txt`

I'm using local (filesystem) lists myself, I've never seen this message, using the syntax (example) file:///home/pi/BL/tracker/domains

---

<div class="post-metadata">

### Author: ![DL6ER](https://discourse-cdn.pi-hole.net/user_avatar/discourse.pi-hole.net/dl6er/32/281_2.png) [@DL6ER](https://discourse.pi-hole.net/u/DL6ER)
#### Post date: [February 15, 2020, 11:23am UTC](https://discourse.pi-hole.net/t/request-show-regex-responsible-for-blocking/27656/58 "2020-02-15T11:23:51Z")

</div>

@anon55913113 Does `pihole -q local` give any result? I agree with @jpgpi250 not having seen this before.

* * *

We're slowly getting there...now with an underlined link. Users should be familiar enough with the web that underlined text _usually_ means "click me".

 ![Screenshot from 2020-02-15 12-22-32](https://discourse.pi-hole.net/uploads/default/original/2X/a/a52835348ca36e9a7593cf550ef631d1fbe8013f.png)

---

<div class="post-metadata">

### Author: ![DL6ER](https://discourse-cdn.pi-hole.net/user_avatar/discourse.pi-hole.net/dl6er/32/281_2.png) [@DL6ER](https://discourse.pi-hole.net/u/DL6ER)
#### Post date: [February 15, 2020, 11:27am UTC](https://discourse.pi-hole.net/t/request-show-regex-responsible-for-blocking/27656/59 "2020-02-15T11:27:52Z")

</div>

A post was split to a new topic: [Web checkout error](https://discourse.pi-hole.net/t/web-checkout-error/28291)

---

<div class="post-metadata">

### Author: ![DL6ER](https://discourse-cdn.pi-hole.net/user_avatar/discourse.pi-hole.net/dl6er/32/281_2.png) [@DL6ER](https://discourse.pi-hole.net/u/DL6ER)
#### Post date: [February 15, 2020, 1:20pm UTC](https://discourse.pi-hole.net/t/request-show-regex-responsible-for-blocking/27656/61 "2020-02-15T13:20:49Z")

</div>

I guess there is no real way of doing it right with the regex link, the current way of doing it seems unobtrusive and highlights that there is something special about this text. We can leave it like this and see if users complain IMHO.

> [@anon55913113](#):
>
> ```auto
> .
> .
> 
> ```

So these two dots really show up in there? I assume you put them in, just asking to be sure. You should better put something more obvious such as `<redacted>` in there to clearly highlight that this is human-made.

---

<div class="post-metadata">

### Author: ![DL6ER](https://discourse-cdn.pi-hole.net/user_avatar/discourse.pi-hole.net/dl6er/32/281_2.png) [@DL6ER](https://discourse.pi-hole.net/u/DL6ER)
#### Post date: [February 16, 2020, 9:31am UTC](https://discourse.pi-hole.net/t/request-show-regex-responsible-for-blocking/27656/63 "2020-02-16T09:31:14Z")

</div>

This code has now been merged into the beta.

Please go back to the main beta branch to continue receiving updates:

```auto
pihole checkout web release/v5.0
pihole checkout ftl release/v5.0

```

Thanks for all your inputs and helping us make Pi-hole a better software for us all!

[Previous page](https://discourse.pi-hole.net/t/request-show-regex-responsible-for-blocking/27656.md?page=2)
