first commit

This commit is contained in:
Anurag Jangid 2026-10-08 02:52:58 +05:30
commit 34ea15a54d
246 changed files with 18660 additions and 0 deletions

View file

@ -0,0 +1,10 @@
from urllib.parse import urlparse
ALLOWED_SCHEMES = {"http", "https"}
def validate_outbound_url(url: str) -> str:
parsed = urlparse(url.strip())
if parsed.scheme not in ALLOWED_SCHEMES or not parsed.netloc:
raise ValueError("Only http and https URLs are allowed")
return url.strip()