- Details
- Category: Technology
Some weeks ago, I was trying to explain the eMail flow and how protocols are involved. I am not very good at explaining, so I took now my time and I have done this little description. I hope it is useful for everyone.
- Details
- Category: Technology
Today while I was coding a DNS plugin against a MariaDB database, I realized that after a long idle time database closes the connection. After googling for a moment, I realized that both MySQL and MariaDB offer in their API a mechanism to allow reconnections. So here it is the way I did it.
- Details
- Category: Technology
Today suddenly one of my servers started to alarm from nothing, the database went down and Apache started to fork like crazy. All was chaos in minutes! After looking at what was happening I found that there was a DDoS against one of my websites hosted on that server.
The problem was that Joomla was configured to show the default web page if a 404 answer was sent. This is a good technique if you are looking forward to enhancing the user experience, but in this case, it fired back. Each time the default page was shown, Joomla generated the subsequent SQL queries. And in a massive load, this drives to run out of memory.
- Details
- Category: Technology
HTTP (and HTTPS as well) has a referral header. This header allows the log analyzers to trace where the request is coming from. So, if you need to stop external referrals, this is the way to do it.
Here is my .htaccess file I use:
- Details
- Category: Technology
These are basic requests, but just in case, you must place them. You don't know if the software you are running is buggy.
Here is the .htaccess file I use:
Read more: Block a URL with a Specific Pattern with .htaccess File

