Abstract: Web security has become a critical concern due to the increasing sophistication of cyber threats, with Cross-Site Scripting (XSS) among the most prevalent attacks. Traditional rule-based ...