1. Home
  2. › Article

Hybrid Rule-Based and Support Vector Machine Engine for Real-Time Web Content Classification and Traffic Categorization

Vol. 5 No. 2 (2026): IJEC

Budi Sunaryo (1) , Muhammad Ilhamdi Rusydi (2) , Ariadi Hazmi (3) , Minoru Sasaki (4) , Mokhamad Hendayun (5)

Keywords: hybrid classification , real-time traffic categorization , router API enforcement , support vector machine , web content filtering

Abstract

Harmful web content, including online gambling, pornography, and phishing, threatens institutional networks, yet static blacklists cannot classify newly emerging domains and machine learning classifiers are rarely coupled with network control. This study aims to design and evaluate a hybrid engine that classifies web content in real time and translates its verdicts into router-level bandwidth enforcement. A rule-based fast-path resolves Domain Name System (DNS) queries through a static whitelist and lexical patterns, while unresolved domains are scraped and classified by a linear Support Vector Machine (SVM) using Term Frequency-Inverse Document Frequency (TF-IDF) features under a 0.80 confidence threshold. Accepted verdicts trigger category-specific bandwidth penalties through the MikroTik RouterOS application programming interface. An eight-hour real-network experiment with five users classified 22,458 DNS queries. The engine detected 95.0% of the accessed negative test websites, and the fast-path produced 94.5% of negative detections without model inference, whereas the slow-path contributed most phishing detections at 1.20 ms per sample. All 743 penalty events were applied with the prescribed limits and restored automatically. The originality of this work is the coupling of selective, confidence-thresholded inference with graduated router enforcement in a closed loop, which offers institutional networks a lightweight alternative to binary blocking and detection-only classifiers.

References