How To Strip Windows Newlines in PHP

Author: , February 21st, 2018

$text = str_replace(“\r”, “”, $text);

How to Install Apache mod_evasive on AWS Linux/CentOS

Author: , July 26th, 2014

I was getting tired of using iptables to block the various hackers and bots constantly slamming my servers (the Chinese are the worst offenders by far – curse them!). I found the Apache module mod_evasive and installed it. Here are links to various articles about mod_evasive: Add the Module to Apache I […]

How To Block WordPress XMLRPC Attacks

Author: , July 8th, 2014

Add the following to either your .htaccess file or to your Apache config: 1 2 3 4 <Files xmlrpc.php> Order allow,deny Deny from all </Files> <Files xmlrpc.php> Order allow,deny Deny from all </Files>

Safe, Sane and Secure – IPTables Introduction

Author: , January 20th, 2011

As a webmaster of over a decade, sometimes the load on my server spikes high. Investigation discovered that various bad guys on the Internet were probing/attacking my server on a regular basis. Step One – Be Aware Read your apache logs Actively monitor your servers. I use Nagios running on my home server. Use top […]

Protected: Denial of Service Attack Records

Author: , December 30th, 2010

There is no excerpt because this is a protected post.

How to Convert DOS Line Breaks to UNIX in VIM

Author: , September 29th, 2009

To convert DOS line breaks (^M) to UNIX in VIM: :%s/^M/\r/g -OR- :set fileformat=unix