# Block Hostnames

## The Problem

When running automated tests, the environment must be controlled, with no rogue GTM scripts injecting popups or other domains interfering with the DOM.

This provides a challenge when running automated tests if the pop-up criterion is not consistent (for example, a 50/50 split on pop-up showing). So the question is: How do I block popups in Automated Tests?

## The Solution

To find that pesky pop-up source can be difficult. We recommend you look for any 3rd party calls (outbound calls that are not from your domain) on page load. This can help you hone in on the domain that is causing the pop-up. Below is a list of 10 examples.

1. ***Popup Maker** Domain:* [*popupmaker.com*](https://popupmaker.com/)
2. ***Elementor** Domain:* [*elementor.com*](https://elementor.com/)
3. ***OptinMonster** Domain:* [*optinmonster.com*](https://optinmonster.com/)
4. ***SumoMe (Sumo)** Domain:* [*sumo.com*](https://sumo.com/)
5. ***Ninja Popups** Domain:* [*arscode.pro*](https://arscode.pro/)
6. ***Bloom by Elegant Themes** Domain:* [*elegantthemes.com*](https://elegantthemes.com/)
7. ***TrustPulse** Domain:* [*trustpulse.com*](https://trustpulse.com/)
8. ***WP Popups** Domain:* [*wppopups.com*](https://wppopups.com/)
9. ***Thrive Leads** Domain:* [*thrivethemes.com*](https://thrivethemes.com/)
10. ***ConvertPlus** Domain:* [*convertplus.io*](https://convertplus.io/)

With DoesQA, you can block domains from your account settings.&#x20;

<br>


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.does.qa/configuration/block-hostnames.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
