# Blocking randomly generated domain names

**URL:** <https://discourse.pi-hole.net/t/blocking-randomly-generated-domain-names/3636>\
**Category:** Help\
**Created:** [June 11, 2017, 4:31pm UTC](https://discourse.pi-hole.net/t/blocking-randomly-generated-domain-names/3636 "2017-06-11T16:31:30Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![MB-101](https://discourse-cdn.pi-hole.net/letter_avatar_proxy/v4/letter/m/7993a0/32.png) [@MB-101](https://discourse.pi-hole.net/u/MB-101)\
**Post date:** [June 11, 2017, 4:31pm UTC](https://discourse.pi-hole.net/t/blocking-randomly-generated-domain-names/3636/1 "2017-06-11T16:31:30Z")

</div>

Hello!

I would like to say that I really love Pi-Hole and love how the community has come together to make it better everyday. I downloaded an Android app and saw that the ads were still displaying (removed the app when I couldn't fix it). I looked into the logs and saw that the program (or ad server?) was generating random domain names to circumvent efforts to block the offending source.  
I was wondering if there is anyway to customize a blacklist through maybe regex or some means to try to overcome this 'feature.' This was all done through the GUI (trying to block them). I realized there would be more randomly generated domains then I could manually blacklist. I've attached the logs in question. Any suggestions/ideas are most welcome. thank you!

Time Type Domain Client Status Action  
6/11/2017 12:09 IPv4 rugfjtysgw 192.168.xxx.xxx OK (cached) Blacklist  
6/11/2017 12:09 IPv4 toirijehmfq 192.168.xxx.xxx OK (cached) Blacklist  
6/11/2017 12:10 IPv4 lqnqggtkrnofq 192.168.xxx.xxx OK (cached) Blacklist  
6/11/2017 12:10 IPv4 refpfrwxmw 192.168.xxx.xxx OK (cached) Blacklist  
6/11/2017 12:10 IPv4 zyjeljeocrcl 192.168.xxx.xxx OK (cached) Blacklist

---

<div class="post-metadata">

**Author:** ![Mcat12](https://discourse-cdn.pi-hole.net/user_avatar/discourse.pi-hole.net/mcat12/32/20_2.png) [@Mcat12](https://discourse.pi-hole.net/u/Mcat12)\
**Post date:** [June 11, 2017, 9:16pm UTC](https://discourse.pi-hole.net/t/blocking-randomly-generated-domain-names/3636/2 "2017-06-11T21:16:33Z")

</div>

Usually that type of randomly generated domain name is used by chrome to check if your connection is in a captive portal. The ads are probably coming through other domains.

---

<div class="post-metadata">

**Author:** ![jacob.salmela](https://discourse-cdn.pi-hole.net/user_avatar/discourse.pi-hole.net/jacob.salmela/32/8_2.png) [@jacob.salmela](https://discourse.pi-hole.net/u/jacob.salmela)\
**Post date:** [June 12, 2017, 4:14am UTC](https://discourse.pi-hole.net/t/blocking-randomly-generated-domain-names/3636/3 "2017-06-12T04:14:34Z")

</div>

> [@Why do I see domains with random characters (such as yfjmdpisrvyrnq) in my query log?](https://discourse.pi-hole.net/t/why-do-i-see-domains-with-random-characters-such-as-yfjmdpisrvyrnq-in-my-query-log/3440):
>
> This behavior is something that Chrome does. You may see domains in your log such as 2017-30-22T15:18:51 A yfjmdpisrvyrnq localhost(127.0.0.1) OK 2017-30-22T15:18:51 A attxnwheeeuiad localhost(127.0.0.1) OK 2017-30-22T15:18:47 A nskywzjbpj localhost(127.0.0.1) OK 2017-30-22T15:18:45 A jlkjfxgwhpn localhost(127.0.0.1) OK 2017-30-22T15:18:45 A qumdgakndpowoga localhost(127.0.0.1) OK 2017-30-22T15:18:35 A wbjdzyaplucvpcl localhost(127.0.0.1) OK A Chrome web browser reaches out to r…
