added a bunch of small but solid features today.
first was the loading spinner — replaced the plain “Checking… pls wait” text w a css spinner. literally just a div w a border animation, no extra libraries. small thing but makes it feel way more polished.
then added redirect checker. uses python’s requests library w allow_redirects=True so no extra api needed. tracks the full redirect chain, counts hops, checks if the final domain is different from the original. if it is, risk score goes up. more than 3 redirects also flags it. shows final url, status code, chain and whether the domain changed — all in the frontend.
had the usual issues. true instead of True, r.ur instead of r.url, missing closing bracket on urlparse, false instead of False, stray ) floating outside the except block. fixed all of it.
also updated all the return statements to include both whois and redirect so the frontend always gets the full data regardless of which check catches it.