# Suricata and IP blacklist

**URL:** <https://forum.suricata.io/t/suricata-and-ip-blacklist/972>\
**Category:** Help\
**Created:** [January 13, 2021, 8:25pm UTC](https://forum.suricata.io/t/suricata-and-ip-blacklist/972 "2021-01-13T20:25:43Z")\
**Posts on this page:** 1\
**Showing post:** 39

<div class="post-metadata">

**Author:** ![syoc](https://avatars.discourse-cdn.com/v4/letter/s/f475e1/32.png) [@syoc](https://forum.suricata.io/u/syoc)\
**Post date:** [February 3, 2021, 4:27pm UTC](https://forum.suricata.io/t/suricata-and-ip-blacklist/972/39 "2021-02-03T16:27:15Z")

</div>

Ah, never knew about the ipv4.hdr buffer. Very interesting.

The issue, however is that you are matching against the raw ipv4 header.  
This means that the source and destination IP is not represented as a plaintext IP.  
If you want a rule to match traffic towards 8.8.8.8 for instance you need a rule with `ipv4.hdr; content:"|08 08 08 08|";` as you are matching the binary content directly.

---

_[View the full topic](https://forum.suricata.io/t/suricata-and-ip-blacklist/972)._
