# Blocklist - Show last modified date

**URL:** <https://discourse.pi-hole.net/t/blocklist-show-last-modified-date/30878>\
**Category:** Partially-implemented\
**Created:** [April 21, 2020, 9:56pm UTC](https://discourse.pi-hole.net/t/blocklist-show-last-modified-date/30878 "2020-04-21T21:56:30Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![dryice](https://discourse-cdn.pi-hole.net/user_avatar/discourse.pi-hole.net/dryice/32/15987_2.png) [@dryice](https://discourse.pi-hole.net/u/dryice)\
**Post date:** [April 21, 2020, 9:56pm UTC](https://discourse.pi-hole.net/t/blocklist-show-last-modified-date/30878/1 "2020-04-21T21:56:30Z")

</div>

Hi,

What I've found over time is that I'm my blocklist (currently 33 individual URLs) is growing to be quite large.

Is it possible to include a "Last modified" header field (from the website where the content is being downloaded from) in the list so that I can potentially remove blocklists that are not being maintained by their respective owners?

Perhaps add the feature to sort by last modified date so it's easier to quickly identify non-maintained block lists and remove them if applicable.

Thanks for the awesome product!

---

<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:** [April 22, 2020, 1:52am UTC](https://discourse.pi-hole.net/t/blocklist-show-last-modified-date/30878/2 "2020-04-22T01:52:18Z")

</div>

This information is available on the Pi, but not via the web GUI. Local copies of the blocklists to which you subscribe are kept in folder _ **/etc/pihole** _. When the blocklists are updated, a check is made to see if the file on the web has been updated since the date of the file stored locally. If not, then the local copy is used. If the web file is newer, it is downloaded and stored locally.

Check the dates for the files that start with "list" in _ **/etc/pihole** _ and you will see when they last changed. This command will show the local copies sorted by date changed, oldest files at the top of the list.

`ls -lhatr /etc/pihole/list*`

---

<div class="post-metadata">

**Author:** ![dryice](https://discourse-cdn.pi-hole.net/user_avatar/discourse.pi-hole.net/dryice/32/15987_2.png) [@dryice](https://discourse.pi-hole.net/u/dryice)\
**Post date:** [April 22, 2020, 3:30pm UTC](https://discourse.pi-hole.net/t/blocklist-show-last-modified-date/30878/3 "2020-04-22T15:30:28Z")

</div>

> [@jfb](#):
>
> Check the dates for the files that start with “list” in _ **/etc/pihole** _ and you will see when they last changed. This command will show the local copies soreted by date changed, oldest files at the top of the list.

This is great information! Thank you! So what was interesting for me, I found about 6 feed lists that were no longer maintained. Is there a plan to make the feed date last modified or even the size of the feed downloaded in the web GUI?

Thanks again for the quick response jfb!

---

<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:** [April 22, 2020, 3:52pm UTC](https://discourse.pi-hole.net/t/blocklist-show-last-modified-date/30878/4 "2020-04-22T15:52:46Z")

</div>

> [@dryice](#):
>
> Is there a plan to make the feed date last modified or even the size of the feed downloaded in the web GUI?

For the first, no. But, you have this feature request.

For the second, we have this now in Pi-hole V5.0. When gravity runs, it shows for each list loaded the following information. For the first list, the list on the web was different than the local copy, so the list was downloaded. For the second list, there were no changes, so the local copy was used.

```auto
  [i] Target: https://raw.githubusercontent.com/StevenBlack/hosts/master/hosts
  [✓] Status: Retrieval successful
  [i] Received 55263 domains

  [i] Target: https://s3.amazonaws.com/lists.disconnect.me/simple_ad.txt
  [✓] Status: No changes detected
  [i] Received 2701 domains

```

---

<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:** [July 5, 2020, 9:59am UTC](https://discourse.pi-hole.net/t/blocklist-show-last-modified-date/30878/5 "2020-07-05T09:59:15Z")

</div>

There is a field showing last\_modified for each adlist (tooltip mouseover), but it doesn't show what you wish for.

 ![Bildschirmfoto zu 2020-07-05 09-21-07](https://discourse.pi-hole.net/uploads/default/original/3X/a/3/a3695e56e4d6ecd65cf5bd1658ff86c7dcbeac0f.png)

Therefor I created a similar FR:

> [@'Last modified' for adlists should display modification date of adlist instead of database modification](https://discourse.pi-hole.net/t/last-modified-for-adlists-should-display-modification-date-of-adlist-instead-of-database-modification/35204):
>
> Since v5.0 pihole displays a mouseover tooltip for each adlist in group management containing information about "Last modified" (field date\_modified in gravity.db). From a user's perspective I would expect this date corresponds to the date the content of the adlist has changed. Instead, it shows when the database entry for that adlist changed. This can easily seen by enabling/disabling an adlist and the "Last modified" will change. [Bildschirmfoto zu 2020-07-05 09-21-07] [Bildschirmfoto zu 2…

I'll leave both open, because this one goes beyond what I request (sort by last modified).

---

<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 28, 2020, 7:51pm UTC](https://discourse.pi-hole.net/t/blocklist-show-last-modified-date/30878/6 "2020-12-28T19:51:48Z")

</div>

There has been some progress on that topic:

> [@Info über tote Listen](https://discourse.pi-hole.net/t/info-uber-tote-listen/42098/15):
>
> So, bitte testen und ich freue mich über Rückmeldungen: pihole checkout core new/gravity\_adlist\_infos pihole checkout web new/gravity\_adlist\_infos Dieser Versuch sollte möglichst Touchscreen-kompatibel sein. Weitere Infos zu den jeweiligen Listen gibt es wenn man auf das farbige Icon klickt: [Screenshot from 2020-12-27 20-50-41] Ich habe die Listen nun auch zu klickbaren Links umgewandelt, damit man schneller nachschauen kann, wieso eine Liste nicht funktioniert, z.B. in diesem Fall: [Scree…

---

<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:** [May 31, 2022, 7:28pm UTC](https://discourse.pi-hole.net/t/blocklist-show-last-modified-date/30878/7 "2022-05-31T19:28:22Z")

</div>

Those two PRs added information when **the content of an adlist** was last changed to the web interface. Only the sorting is now missing.

> <https://github.com/pi-hole/pi-hole/pull/3740>
>
> \*\*By submitting this pull request, I confirm the following:\*\* 
> 
> \- \[X\] I have r…ead and understood the \[contributors guide\](https://github.com/pi-hole/pi-hole/blob/master/CONTRIBUTING.md), as well as this entire template.
> \- \[X\] I have made only one major change in my proposed changes.
> \- \[X\] I have commented my proposed changes within the code.
> \- \[X\] I have tested my proposed changes, and have included unit tests where possible.
> \- \[X\] I am willing to help maintain this change if there are issues with it later.
> \- \[X\] I give this submission freely and claim no ownership.
> \- \[X\] It is compatible with the \[EUPL 1.2 license\](https://opensource.org/licenses/EUPL-1.1)
> \- \[X\] I have squashed any insignificant commits. (\[\`git rebase\`\](http://gitready.com/advanced/2009/02/10/squashing-commits-with-rebase.html))
> 
> \---
> \*\*What does this PR aim to accomplish?:\*\*
> 
> !\[Screenshot at 2020-09-07 21-17-10\](https://user-images.githubusercontent.com/16748619/92413256-85ef8a00-f14f-11ea-88fe-8f8348bc51e6.png)
> 
> \*\*How does this PR accomplish the above?:\*\*
> 
> Add a new \`date\_updated\` field to \`adlist\` table. This field is preserved if we used a cached version and updated when we downloaded new content.
> 
> \*\*What documentation changes (if any) are needed to support this PR?:\*\*
> 
> Add description of additional field to the database table description (to be done separately)
> 
> This PR is connected to https://github.com/pi-hole/AdminLTE/pull/1579

[https://github.com/pi-hole/AdminLTE/pull/1579](https://github.com/pi-hole/AdminLTE/pull/1579)
