Engineering & Troubleshooting

Blocking a sales software popup impacting billing counter computer

8-minute read • homemadesoftware.net

Managing workstations for a retail shop requires clean, predictable startup routines. That broke down the moment our customer installed their mandatory sales software. Every laptop on every platform began forcing a browser popup survey open on every boot.

What made it worse: closing the popup without filling it out flagged the account as "Viewed" on the vendor's backend, which led to unwanted follow-up from their team. Deleting the startup trigger locally didn't help either. The software kept reinstalling it.

The problem in detail

How the software hooks into startup

Why removing it didn't work

Our customer had already tried deleting the startup entries. Every time, the software's background service detected the missing entry on reboot and silently put it back. IT support couldn't break the loop either.

The fix: block the domain at the network level

Instead of fighting the application, we went below it. The browser can't open the survey if the domain doesn't resolve. We added one line to the system hosts file on each machine:

127.0.0.1 feedback.salesdomain.com

This redirects the popup's domain to localhost. The browser connects, gets nothing back, and the window stays blank or closes immediately. The startup trigger still fires. We just don't care, because the destination is dead.

How to apply it on each OS

🪟 Windows

Open C:\Windows\System32\ drivers\etc\hosts in Notepad as Administrator. Add the line at the bottom. Save.

🍏 macOS

Open Terminal. Run sudo nano /etc/hosts. Add the line. Save with Ctrl+O. Run dscacheutil -flushcache.

🐧 Linux

Edit /etc/hosts with root. Add the line. Run sudo systemd-resolve --flush-caches if on systemd.

Why this works so well

Takeaway: When application-level removal keeps getting undone, go to the network layer. One line in the hosts file is below the application entirely.

Since this hosts-file fix worked well. Then the customer asked for the same protection across every laptop, in every one of their stores. That's when a one-line hosts-file edit stopped being a solution and started being a chore and our solution mitm-dns solved this too!

Did this help you?

We investigated this and fixed it for our customer. If it helped you too, or if you have a software problem you would like us to look at, we would love to hear from you.

Follow us to know more about the exciting products we build: