Text this: Design and development of an intelligent security layer for web-based applications