localhost "blocked" #703

Closed
opened 2026-03-04 00:44:32 -05:00 by deekerman · 4 comments
Owner

Originally created by @Omoeba on GitHub (May 21, 2019).

Steps to reproduce

1.install adguard home and select all filters
2.set adguard home as system dns server for client(s)
3.look at query log and top blocked domains

Expected behavior

localhost should not be marked as blocked when a hosts file defines it as 127.0.0.1 and ::1; for example in hpHosts

Actual behavior

localhost is listed as the top blocked domain and the query log is filled by it

Your environment

Description Value
Version of AdGuard Home server: v0.95-hotfix
Operating system and version: Ubuntu 18.04 LTS
Originally created by @Omoeba on GitHub (May 21, 2019). <!--- Help us to avoid duplicate reports, make sure you have searched through existing issues before submitting a new one--> <!--- If you are requesting a new feature, tell us how it should work in free form--> <!--- If you are reporting a bug, submit the detailed description using the template below--> ### Steps to reproduce <!--- Provide a link to a live example or a clear set of steps to reproduce the issue--> 1.install adguard home and select all filters 2.set adguard home as system dns server for client(s) 3.look at query log and top blocked domains ### Expected behavior <!--- Tell us what should happen --> localhost should not be marked as blocked when a hosts file defines it as 127.0.0.1 and ::1; for example in hpHosts ### Actual behavior <!--- Tell us what happens instead --> localhost is listed as the top blocked domain and the query log is filled by it ### Your environment <!--- Please include all relevant details about the environment you experienced the bug in --> | Description | Value | | -------------- | ------------ | | Version of AdGuard Home server:| v0.95-hotfix | Operating system and version:| Ubuntu 18.04 LTS
deekerman 2026-03-04 00:44:32 -05:00
  • closed this issue
  • added the
    question
    label
Author
Owner

@ameshkov commented on GitHub (May 22, 2019):

I am not sure if this can be considered a bug.

Every domain listed in any filter list is marked as blocked, why localhost should be an exception

@ameshkov commented on GitHub (May 22, 2019): I am not sure if this can be considered a bug. Every domain listed in any filter list is marked as blocked, why localhost should be an exception
Author
Owner

@alexsannikov commented on GitHub (May 22, 2019):

Omoeba, delete localhost from any filter file.
Everything in filter files will be blocked.
I personally cleanup the hosts files from different sources before use, removing all the "localhost" records and replacing 127.0.0.1 -> 0.0.0.0

@alexsannikov commented on GitHub (May 22, 2019): Omoeba, delete localhost from any filter file. Everything in filter files will be blocked. I personally cleanup the hosts files from different sources before use, removing all the "localhost" records and replacing 127.0.0.1 -> 0.0.0.0
Author
Owner

@Omoeba commented on GitHub (May 22, 2019):

localhost should be an exception because it is not blocked by defining the IP as 127.0.0.1 or ::1. The correct ip for localhost is 127.0.0.1 or ::1. For example, doubleclick.net is blocked by defining it as 127.0.0.1 when the IP is not.

@Omoeba commented on GitHub (May 22, 2019): localhost should be an exception because it is not blocked by defining the IP as 127.0.0.1 or ::1. The correct ip for localhost is 127.0.0.1 or ::1. For example, doubleclick.net is blocked by defining it as 127.0.0.1 when the IP is not.
Author
Owner

@ameshkov commented on GitHub (May 23, 2019):

Pointing a hostname to 127.0.0.1 does not necessarily mean blocking. It just means that the client app will try to connect to 127.0.0.1 and if there's no one listening, the connection will fail.

Also, a hosts file can redefine localhost and point it to some remote IP. So highlighting the fact that there's a line for it in the query log makes sense - you need to be aware of it.

@ameshkov commented on GitHub (May 23, 2019): Pointing a hostname to 127.0.0.1 does not necessarily mean blocking. It just means that the client app will try to connect to 127.0.0.1 and if there's no one listening, the connection will fail. Also, a hosts file can redefine `localhost` and point it to some remote IP. So highlighting the fact that there's a line for it in the query log makes sense - you need to be aware of it.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/AdGuardHome#703
No description provided.