Abstract: Web applications play important role in our daily life. It has made our life easy and simple, we use web applications in almost every fields like online banking, online shopping, to read news paper, in government sectors to pay tax these all applications maintain huge amount of user data and prone to attacks dangerous attacks like SQLI (Structural Query Language Injection) attacks. In this paper we used Pattern matching algorithm detect and prevent SQLI attacks on websites, hence provide security to website.

Keywords: Include (SQL Injection Attack); web applications; pattern matching; malicious SQL commands.