One effective method to mitigate brute-force attacks and attempts to break into your public server via the SSH daemon is to use the appropriate iptables rule that will handle such abuse. There are a couple that do the job really well but the one I personally use is one that works on both, dedicated and virtual, servers. Continue reading
Every time I set up a server, the very next thing I do is secure the Secure SHell Daemon (sshd).
My checklist for doing that looks something like this: Continue reading
If, like me, you want to easily have some program start every time you boot up your Linux server, you need to find and edit the
rc.local file in your file-system.
/etc/rc.local is really a simple place to put shell commands and/or scripts you want to run when booting up. Continue reading
Earlier today I implemented stricter iptables rules on this web server – finally completing one essential task I have been ignoring for so long. Minutes later, just when I was beginning to feel good about myself, on a remote server some place else, the Webmin System and Server Status module there was reporting that it could no longer access this server!
Damn. Continue reading
Recently, I needed a simple PHP function that will match an IP Address in a CIDR block. Continue reading
If your MySQL version is 3.22.5 or later, you can now INSERT multiple values / records in one single query. In most cases this is probably not useful but I recently found this out while trying to optimise my GIDTopsites script. Continue reading
This is the only PHP script that I wrote and use nearly everyday but never published! My stopwatch / timer script… I use it to test, benchmark most of the other scripts I write. Continue reading
Searching a PHP array was not as simple as I had thought. Sure, you can use
array_search() but that only finds one value off an array the last time I tried it out. I needed something to search a multidimensional array, for example… I tried many things before I finally figured it out! Continue reading