# Block Ads Without Using Extensions | Easy Trick ⭐

**URL:** <https://onehack.st/t/block-ads-without-using-extensions-easy-trick/295750>\
**Category:** Tutorials & Methods\
**Tags:** privacy, freebies, tips-tricks, social-media, browsers\
**Created:** [November 15, 2024, 10:24am UTC](https://onehack.st/t/block-ads-without-using-extensions-easy-trick/295750 "2024-11-15T10:24:20Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Aina](https://onehack.st/user_avatar/onehack.st/aina/32/167469_2.png) [@Aina](https://onehack.st/u/Aina)\
**Post date:** [November 15, 2024, 10:24am UTC](https://onehack.st/t/block-ads-without-using-extensions-easy-trick/295750/1 "2024-11-15T10:24:20Z")

</div>

Copy the below code and add it to your hosts file 🤷‍♂️

```auto
0.0.0.0 pubads.g.doubleclick.net
0.0.0.0 securepubads.g.doubleclick.net
0.0.0.0 [www.googletagservices.com](https://www.googletagservices.com/)
0.0.0.0 gads.pubmatic.com
0.0.0.0 ads.pubmatic.com
0.0.0.0 tpc.googlesyndication.com
0.0.0.0 pagead2.googlesyndication.com
0.0.0.0 googleads.g.doubleclick.net

```

Get rid of ads just like that!

# **ENJOY & HAPPY LEARNING!** ❤

Appreciate the share & feedback! don’t be cheap!

---

<div class="post-metadata">

**Author:** ![Aina](https://onehack.st/user_avatar/onehack.st/aina/32/167469_2.png) [@Aina](https://onehack.st/u/Aina)\
**Post date:** [November 15, 2024, 10:31am UTC](https://onehack.st/t/block-ads-without-using-extensions-easy-trick/295750/2 "2024-11-15T10:31:38Z")

</div>

Curious to know where that Hosts file is located? Here it is, you can copy/paste this address to your Windows Explorer, edit and paste this:

```auto
C:\Windows\System32\drivers\etc

```

1. Open with notepad
2. Add the above host blockers
3. To Save it click \> File \> Save as \> From pop-up window use Save as Type drop-down menu, Click \> All files \> Click \> Hosts file, Overwrite!

Bam Boom Bambast! 🤷‍♂️
