# freeCodeCamp Challenge Guide: Disable DNS Prefetching with helmet.dnsPrefetchControl()

**URL:** <https://forum.freecodecamp.org/t/freecodecamp-challenge-guide-disable-dns-prefetching-with-helmet-dnsprefetchcontrol/301577>\
**Category:** freeCodeCamp Contributors\
**Tags:** guide\
**Created:** [August 3, 2019, 1:19pm UTC](https://forum.freecodecamp.org/t/freecodecamp-challenge-guide-disable-dns-prefetching-with-helmet-dnsprefetchcontrol/301577 "2019-08-03T13:19:17Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![camperbot](https://sea3.discourse-cdn.com/freecodecamp/user_avatar/forum.freecodecamp.org/camperbot/32/18364_2.png) [@camperbot](https://forum.freecodecamp.org/u/camperbot)\
**Post date:** [August 3, 2019, 1:19pm UTC](https://forum.freecodecamp.org/t/freecodecamp-challenge-guide-disable-dns-prefetching-with-helmet-dnsprefetchcontrol/301577/1 "2019-08-03T13:19:18Z")

</div>

# [Disable DNS Prefetching with helmet.dnsPrefetchControl()](https://www.freecodecamp.org/learn/information-security/information-security-with-helmetjs/disable-dns-prefetching-with-helmet-dnsprefetchcontrol)

* * *

## Hints

### Hint 1

You want your `app` to `use` helmet’s `dnsPrefetchControl()` method.

* * *

## Solutionss

> **Solution 1 (Click to Show/Hide)**
>
> In the `myApp.js` file add `app.use(helmet.dnsPrefetchControl());` under the eighth instructions.
> 
> **Note:** Be sure to submit the link to the **live demo** of your project.

---

<div class="post-metadata">

**Author:** ![ILM](https://sea3.discourse-cdn.com/freecodecamp/user_avatar/forum.freecodecamp.org/ilm/32/363239_2.png) [@ILM](https://forum.freecodecamp.org/u/ILM)\
**Post date:** [January 8, 2025, 3:57pm UTC](https://forum.freecodecamp.org/t/freecodecamp-challenge-guide-disable-dns-prefetching-with-helmet-dnsprefetchcontrol/301577/2 "2025-01-08T15:57:58Z")

</div>

Closed on January 8, 2025, 3:57pm UTC


