Fail2ban is a useful firewall that protects your Linux system from brute force attacks and bots. Here is how to install Fail2ban in CentOS 7.
How to Copy File to Multiple Directories in Linux
Sometimes you may need to copy file to multiple directories in Linux. Here is how to copy files to multiple folders.
Shell Script to Loop Through Files in a Directory
Sometimes you may need to loop over files in a folder or subfolder. Here is a shell script to loop through files in a directory.
How to Loop Over Lines of File in Bash
Sometimes you may need to iterate over lines in file. Here is a shell script to loop over lines of file in bash.
Shell Script to Tar Multiple Files & Directories
Very often you may need to tar files & directories in Linux. Here is a simple shell script to tar multiple files & directories in Linux.
How to Check if Directory Exists in Shell Script
Sometimes you may need to check if directory exists in bash or other shells. Here is a shell script to check if directory exists.
Shell Script to Delete Files in Directory
Very often you need to delete files in a directory. Here is a shell script to delete files in a directory.
How to Create Wildcard Subdomain VirtualHost in Apache Server
Sometimes you may need to create virtual host for wildcard subdomain. Here are the steps to create wildcard subdomain in Apache server.
How to Block Referrer Spam with .htaccess
Sometimes you may need to block visitors by referrer values. Here is how to block referrer spam with .htaccess in Apache server.
How to Serve Static Files from Different Folder in NGINX
Sometimes you may need to serve static files in NGINX from different folder. Here are the steps to do it.