PROJET AUTOBLOG


shaarli-Links

Site original : shaarli-Links

⇐ retour index

I use Zip Bombs to Protect my Server

2025-06-02T14:31:38+02:00

:-)

dd if=/dev/zero bs=1G count=10 | gzip -c > 10GB.gz
<?php
if (ipIsBlackListed() || isMalicious()) {
    header("Content-Encoding: gzip");
    header("Content-Length: "+ filesize(ZIP_BOMB_FILE_10G)); // 10 MB
    readfile(ZIP_BOMB_FILE_10G);
    exit;
}
?>

via https://sebsauvage.net/links/?zfn9tA
Permalink