<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DEV Community: ELNAZEER DAWOD</title>
    <description>The latest articles on DEV Community by ELNAZEER DAWOD (@eln2mac).</description>
    <link>https://dev.to/eln2mac</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F4150690%2Faf46dfd9-0140-4dd5-9862-bc6b7a4181f9.jpg</url>
      <title>DEV Community: ELNAZEER DAWOD</title>
      <link>https://dev.to/eln2mac</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/eln2mac"/>
    <language>en</language>
    <item>
      <title>I Taught a Computer to Spot Fake Websites With 96% Accuracy</title>
      <dc:creator>ELNAZEER DAWOD</dc:creator>
      <pubDate>Tue, 29 Sep 2026 20:15:53 +0000</pubDate>
      <link>https://dev.to/eln2mac/i-taught-a-computer-to-spot-fake-websites-with-96-accuracy-3ikh</link>
      <guid>https://dev.to/eln2mac/i-taught-a-computer-to-spot-fake-websites-with-96-accuracy-3ikh</guid>
      <description>&lt;p&gt;What if a computer could tell a fake website is fake just by looking at its URL — without ever opening it? Turns out, yes. Here's how I built my first real machine learning project.&lt;/p&gt;

&lt;h2&gt;
  
  
  The Problem: Phishing Is Everywhere
&lt;/h2&gt;

&lt;p&gt;If you've ever gotten a message saying "Your bank account is suspended, click here now," you've seen phishing in action — fake websites disguised as real ones, built to steal your password or credit card number.&lt;/p&gt;

&lt;p&gt;Traditional defenses (blacklists of known bad URLs) are always playing catch-up. Attackers spin up new fake domains faster than blacklists can be updated.&lt;/p&gt;

&lt;h2&gt;
  
  
  The Idea: Teach the Pattern, Not the List
&lt;/h2&gt;

&lt;p&gt;Instead of memorizing bad URLs, what if a model learned the shared traits of phishing sites? Things like:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Does the site have a valid SSL certificate?&lt;/li&gt;
&lt;li&gt;Do the page's internal links point somewhere suspicious?&lt;/li&gt;
&lt;li&gt;Is the domain brand new or well-established?&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  The Experiment
&lt;/h2&gt;

&lt;p&gt;I used the UCI Phishing Websites dataset — 11,055 real websites, each labeled phishing or legitimate, described by 30 features.&lt;/p&gt;

&lt;p&gt;I trained and compared three classic ML algorithms:&lt;/p&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Algorithm&lt;/th&gt;
&lt;th&gt;Accuracy&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;Logistic Regression&lt;/td&gt;
&lt;td&gt;92.45%&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Random Forest&lt;/td&gt;
&lt;td&gt;96.70% 🏆&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;SVM&lt;/td&gt;
&lt;td&gt;94.71%&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;h2&gt;
  
  
  The Most Surprising Part
&lt;/h2&gt;

&lt;p&gt;When I checked which features mattered most, SSL certificate state and anchor link behavior dominated — by a wide margin over the other 28 features.&lt;/p&gt;

&lt;p&gt;Why? Because phishing sites usually:&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;Can't get a valid SSL certificate for a fake domain&lt;/li&gt;
&lt;li&gt;Copy the real site's design, so internal links accidentally point back to the real domain&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;The model figured this out on its own — I never told it to focus on SSL.&lt;/p&gt;

&lt;h2&gt;
  
  
  The Real Takeaway
&lt;/h2&gt;

&lt;p&gt;The biggest lesson: you don't need to be an expert to start. The dataset was ready-made, the tools (Python + scikit-learn) are free, and the steps are well-documented. What it actually took was patience and consistency.&lt;/p&gt;

&lt;p&gt;Full code and details are on GitHub:&lt;br&gt;
🔗 &lt;a href="https://github.com/eln2mac-has/phishing-detection-ml" rel="noopener noreferrer"&gt;https://github.com/eln2mac-has/phishing-detection-ml&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;If you try something similar or have questions, drop a comment below 👇&lt;/p&gt;

</description>
      <category>python</category>
      <category>security</category>
      <category>beginners</category>
      <category>machinelearning</category>
    </item>
  </channel>
</rss>
