My Wordpress website was down due to a database connection error.
When I looked into the cPanel error log I saw around a 100 rows that looked like these:
[Tue Apr 02 06:24:11.179218 2019] [cgi:error] [pid 31625] [client 50.3.196.173:41576] AH01215: PHP Warning: Error while sending QUERY packet. PID=31986 in /home/admin/public_html/wp-includes/wp-db.php on line 1924: /usr/local/cpanel/cgi-sys/ea-php71, referer: http://www.worldtravelawards.com/profile-4544-the-monte-carlo-beach [Tue Apr 02 06:24:11.176124 2019] [cgi:error] [pid 31617] [client 196.247.235.184:60968] AH01215: PHP Warning: Error while sending QUERY packet. PID=31998 in /home/admin/public_html/wp-includes/wp-db.php on line 1924: /usr/local/cpanel/cgi-sys/ea-php71, referer: http://www.worldtravelawards.com/profile-3005-walt-disney-world-swan-and-dolphin-resort
The referer is an external domain that somehow is accessing my wp-db.php
file, causing a PHP, database-related, error. I did some research and came across subjects like "Bandwidth theft" and "Database injection", but I couldn't really find a good answer to a similar situation.
Any ideas what it could be and how to prevent this from happening? Thanks in advance!