Creating URL Query Checker
8 de Setembro de 2026, 07:58
How do you decide what defines an excessively encoded URL?
I'm working on a personal project to created a URL parser and detection system and I've hit a wall on how to figure out a way of categorizing excessivness of query encoding?
Here's what I have so far for the function:
def check_query(analysis: URLAnalysis) -> ScanResult | None: """detect excessive encoding entries in URL queries""" og\_query = analysis.query query = re.findall(r"%\[0-9A-Fa-f\]{2}", og\_query) encoded\_count = len(query) [link] [comments]