Methodology for Safeguarding Cloud Server from Web Application Attacks