# Order Whitelist/Blacklist by added date

**URL:** https://discourse.pi-hole.net/t/order-whitelist-blacklist-by-added-date/20792
**Category:** Duplicate
**Created:** [June 16, 2019, 8:25am UTC](https://discourse.pi-hole.net/t/order-whitelist-blacklist-by-added-date/20792 "2019-06-16T08:25:12Z")
**Posts on this page:** 6
**Page:** 1

<div class="post-metadata">

### Author: ![rampage123](https://discourse-cdn.pi-hole.net/letter_avatar_proxy/v4/letter/r/a698b9/32.png) [@rampage123](https://discourse.pi-hole.net/u/rampage123)
#### Post date: [June 16, 2019, 8:25am UTC](https://discourse.pi-hole.net/t/order-whitelist-blacklist-by-added-date/20792/1 "2019-06-16T08:25:12Z")

</div>

Sometimes the user could add an entity to the whitelist/blacklist by accident, or some entities are supposed to be added and wait for testing for several days,  
if we can order the list by added date, it would be useful.

Thank you.

---

<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: [June 16, 2019, 2:10pm UTC](https://discourse.pi-hole.net/t/order-whitelist-blacklist-by-added-date/20792/3 "2019-06-16T14:10:36Z")

</div>

Pending implementation of this feature, if you open you whitelist and blacklist file directly (both are located in /etc/pihole), the last entry added will be at the end of the file. The information is displayed in alphabetical order in the web GUI, but is not kept in order in the file itself.

An example, first the dashboard, then the file contents.

 ![image](https://discourse.pi-hole.net/uploads/default/original/2X/2/205b9c98ad92e3b2e5e1aff70de9983ddcb53e71.jpeg)

```auto
cat /etc/pihole/blacklist.txt

checking-apple-forcleaning1.com
api.mixpanel.com
www.googletagservices.com
mobile.pipe.aria.microsoft.com
socialize.us1.gigya.com
partner.googleadservices.com
optimized-by.rubiconproject.com
aax.amazon-adsystem.com
l.aaxads.com
static-assets.bleacherreport.com
pagead2.googlesyndication.com

```

---

<div class="post-metadata">

### Author: ![rrrevin](https://discourse-cdn.pi-hole.net/user_avatar/discourse.pi-hole.net/rrrevin/32/8445_2.png) [@rrrevin](https://discourse.pi-hole.net/u/rrrevin)
#### Post date: [June 16, 2019, 3:45pm UTC](https://discourse.pi-hole.net/t/order-whitelist-blacklist-by-added-date/20792/4 "2019-06-16T15:45:16Z")

</div>

On both the whitelist and blacklist screens, it would be immensely beneficial to add a "date/time" added column to each entry.

I know I do this all the time when surfing. A a whitelist here and there to see if it works or not. If it doesn't fix what I want I go back in and remove the entry.

By adding a date/time column that can be sorted, it makes it VERY easy to quickly back out of changes to remove recent additions.

Much easier then having to remember what you added and scroll through a list of possibly hundreds of entries to find it.

If not possible perhaps a new option of "last 25 entries added" for each to make removing them easy to find.

---

<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: [July 6, 2019, 9:13pm UTC](https://discourse.pi-hole.net/t/order-whitelist-blacklist-by-added-date/20792/5 "2019-07-06T21:13:58Z")

</div>

Note that we are currently working on preparing such a feature. From Pi-hole v5.0 on, the creation date/time will be stored for each added/modified domain in the lists.

---

<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: [June 2, 2020, 11:38am UTC](https://discourse.pi-hole.net/t/order-whitelist-blacklist-by-added-date/20792/6 "2020-06-02T11:38:40Z")

</div>

Closing as duplicate of

> [@Ability to sort whitelist/blacklist sites by date added as well as alphabetically](https://discourse.pi-hole.net/t/ability-to-sort-whitelist-blacklist-sites-by-date-added-as-well-as-alphabetically/1823):
>
> Would just make for easier viewing of the lists.

---

<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: [June 2, 2020, 11:39am UTC](https://discourse.pi-hole.net/t/order-whitelist-blacklist-by-added-date/20792/7 "2020-06-02T11:39:13Z")

</div>


