Problems with a PHP driven website or php script at Hostgator hosting account
Hi everybody,
since it happened several times in the past that a customer contacted me that a php driven website or a php script they bought from us didn't work correctly at their domain hosted by Hostgator I contacted Hostgator to solve the problem and below you can read what they answered:
QUOTE:
##########################################################################
I doubt the developer will be able to get around our mod_security rules. This is not an issue as we are aware that our rules are a bit strict. They have to be in order to be effective.
The problem is that malicious scripts and trusted scripts operate in the same way. A trusted script and/or a malicious script may need to load or POST something that contains a URL in it, which will trigger one of our mod_security rules. They both do this in the same fashion and, unfortunately, there is no way to know if the URL is malicious or trusted, so our rules must stop all URL posting (this is just one example of what our rules will stop).
As you might imagine, there would be no way that we can actively select which URLs we can allow and which we cannot, so our rules are all-inclusive. This makes it impossible for legitimate developers to code around our mod_security rules (if a legit developer can do this then a malicious coder would also be able to get around our rules).
We will have to white list any new domains that may trigger our mod_security rules. This is just how it must be on our system for the security that we provide. We have no problems whatsoever white listing this for any of your domains no matter how many you may have. Just open a ticket like this with the domain in question (and the rules if you know them) and we will white list them for you.
######################################################################
If you are using Host Gator, then contact support and ask them to \'whitelist\' the mod security rules for the domain that you are using for the php driven website or script. It\'s a bit of a hassle, but they are very responsive and more than willing to takes care of things on their end. It does correct the problem and they said if something else comes up that is related, to follow up with them on it.