This document discusses an efficient technique for detecting SQL injection attacks using a reverse proxy server. It proposes redirecting user inputs to a proxy server before sending them to the application server. A data cleansing algorithm would then sanitize the inputs by checking for malicious patterns. If patterns are found, the request is rejected, otherwise it is passed to the application server. The technique aims to detect and prevent 93% of SQL injections and 85% of cross-site scripting attacks with low false positives. It uses techniques like pattern matching, sanitization of HTML/JavaScript, and tokenization to cleanse inputs before execution on the database.