Yearly Archives: 2012



For downloading csv files using php. <?php   header("Pragma: public");   header("Expires: 0");   header("Cache-Control: must-revalidate, post-check=0, pre-check=0");   header("Cache-Control: private",false);   header("Content-Type: application/csv");   header("Content-Disposition: attachment; filename=\"output.csv\";" );  readfile("path to output.csv");   ?>

Download as CSV – PHP


Here is how to block Scanalert bots using csf. wget -q -O- http://www.mcafeesecure.com/help/ScanIps.csv | awk 'NR < 4 { next } { print }' | cut -d"," -f1 | replace '"' '' — | sort -n > /etc/csf/csf.denyscanalert To include these blocks in CSF, add this to /etc/csf.deny : Include […]

Block Scanalert bots