# Http headers

**URL:** <https://discourse.mozilla.org/t/http-headers/29678>\
**Category:** Development\
**Created:** [June 27, 2018, 8:09pm UTC](https://discourse.mozilla.org/t/http-headers/29678 "2018-06-27T20:09:57Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![tvorba.webu.havirov.karvina](https://avatars.discourse-cdn.com/v4/letter/t/dfb087/32.png) [@tvorba.webu.havirov.karvina](https://discourse.mozilla.org/u/tvorba.webu.havirov.karvina)\
**Post date:** [June 27, 2018, 8:09pm UTC](https://discourse.mozilla.org/t/http-headers/29678/1 "2018-06-27T20:09:57Z")

</div>

Is it possible to write extension which could refuse to get certains files like .js, .css or images? When a webpage asks server to download images or any files, the extension should to refuse such files. I mean to speed up loading of the webpage… I am interested only about the DOM document and the other documents are unnecessary.

---

<div class="post-metadata">

**Author:** ![freaktechnik](https://sea1.discourse-cdn.com/flex001/user_avatar/discourse.mozilla.org/freaktechnik/32/37766_2.png) [@freaktechnik](https://discourse.mozilla.org/u/freaktechnik)\
**Post date:** [June 27, 2018, 8:18pm UTC](https://discourse.mozilla.org/t/http-headers/29678/2 "2018-06-27T20:18:20Z")

</div>

You can block requests with [https://developer.mozilla.org/en-US/Add-ons/WebExtensions/API/webRequest](https://developer.mozilla.org/en-US/Add-ons/WebExtensions/API/webRequest).

---

<div class="post-metadata">

**Author:** ![Baptistou](https://avatars.discourse-cdn.com/v4/letter/b/94ad74/32.png) [@Baptistou](https://discourse.mozilla.org/u/Baptistou)\
**Post date:** [July 16, 2018, 11:10am UTC](https://discourse.mozilla.org/t/http-headers/29678/3 "2018-07-16T11:10:44Z")

</div>

Hello ! I created an [addon](https://addons.mozilla.org/firefox/addon/scriptfilteraddon/) that does what you need.
