MySQL injection attempts are one of the most common hacking attacks against PHP websites. If your website is hosted on a dedicated or virtual server, the best solution is to your server hardened with proper mod_security rules. However, if you’re on shared hosting, this is not an option. If you now think that it’s not possible to protect your website against various hacking methods on shared hosting, you’re wrong. Although it’s not possible to use advanced strategies to protect your website, you’re still able to protect it against hacking attempts using .htaccess rules. To implement such a protection, append your current .htaccess file with the following code, or create a new file called .htaccess, if you don’t use any yet, and place it in your website’s main folder:
It should work fine with most PHP scripts and has been tested with WordPress and Joomla!. If you want to run your install.php or directly access a config file with your browser, remove the hash symbol at the end of the file before “Allow from 184.108.40.206” and replace “220.127.116.11” with your external IP. .htaccess files will only work with Apache and LiteSpeed.
https://artdimension.ca/wp-content/uploads/2015/12/artd-logo.png00Art-Dhttps://artdimension.ca/wp-content/uploads/2015/12/artd-logo.pngArt-D2016-08-03 13:08:162016-08-03 13:08:16.htaccess against MySQL injections and other hacks