Project Demo
URL Based Spam Detection System
A Java project that reads a message, finds the link inside it and runs it through seven checks (whitelist, HTTPS, risky words, URL pattern, repeated links, domain ending and domain age). Every check adds risk points; the total decides the verdict.
How this demo works
Nothing is faked in the browser. Your text is sent to a backend, which runs the real Java program and returns its answer.
- Browseryou type, JavaScript sends it
- Backend APIvalidates the input
- Java URL filterruns the 7 checks
- Resultsent back and shown here
The 7 checks
- −80Whitelist Domain is in a list of ~1,600 trusted domains.
- +30HTTP / HTTPS Plain
http://(or no scheme) is risky. - +20Risky keywords Words like urgent, verify, password.
- +30URL pattern Very long URL,
?,%or many dashes. - +20Multiple URLs More than one link, or the same link repeated.
- +30Domain ending Unknown TLD (not .com, .in, .org …).
- +40Domain age WHOIS lookup: unknown or under 30 days is risky; very old domains lower the score.
Score 60 or more = potential spam · 30–59 = suspicious · below 30 = safe. Domains that are not whitelisted also get +20.
Try it
Checking backend…- Domain checked
- URLs found
- Domain age
The domain-age lookup (WHOIS) could not be completed, so the filter treated the age as unknown. In this Java program an unknown age adds +40 risk points, which can push unfamiliar domains towards “suspicious” or “potential spam”.