Skip Navigation

I use Zip Bombs to Protect my Server

idiallo.com I use Zip Bombs to Protect my Server

The majority of the traffic on the web is from bots. For the most part, these bots are used to discover new content. These are RSS Feed readers, search engines crawling your content, or nowadays AI bo

I use Zip Bombs to Protect my Server

The one-liner:

dd if=/dev/zero bs=1G count=10 | gzip -c > 10GB.gz

This is brilliant.

Hacker News @lemmy.bestiver.se

I use zip bombs to protect my server

25 1
104 comments
  • Funny part is many of us crusty old sysadmins were using derivatives of this decades ago to test RAID-5/6 sequencial reads and write speeds.

  • let me try..

    • Looks fine to me. Only 1 CPU core I think was 100%.

       undefined
          
      10+0 records in
      10+0 records out
      10737418240 bytes (11 GB, 10 GiB) copied, 28,0695 s, 383 MB/s
      
        
      • ow.. now the idea is to unzip it right?

        nice idea:

         undefined
            
        if (ipIsBlackListed() || isMalicious()) {
            header("Content-Encoding: deflate, gzip");
            header("Content-Length: "+ filesize(ZIP_BOMB_FILE_10G)); // 10 MB
            readfile(ZIP_BOMB_FILE_10G);
            exit;
        }
        
          
104 comments