Over the past three decades, computers have managed to make their way into a majority of households. Due to this enormous transition, the surge in the internets popularity was inevitable. Just like everything else, whatever has a pro also has a con, both are faces of the same coin. Nowadays, web security has become one of the biggest challenges to the corporate world. All web applications are prone to security vulnerabilities, its the developers job to follow the latest norms in order to effectively reduce the threat posed by unauthorized users or programs. In this paper, we have tried to analyze the major problems faced in the real world and have tried to come up with effective solutions to combat all the aforementioned problems.