1. A method for preventing browser-based memory corruption in computers comprising: monitoring HTTP responses transmitted over a network from a web page to which the browser associated with a computer has been directed; and, injecting a library, into an HTTP response, to modify the HTTP response to mitigate attacks on the memory of the computer, the injected library for hooking predetermined functions in the HTTP response, and, when the hooked function is a SET function, the memory is manipulated; and, when the hooked function is a GET function, the memory is repaired.