diff --git a/website/templates/malicious_ips_list.html b/website/templates/malicious_ips_list.html index cc757bef0..a5dd2886a 100644 --- a/website/templates/malicious_ips_list.html +++ b/website/templates/malicious_ips_list.html @@ -122,7 +122,7 @@

Reported Malicious IPs

- + diff --git a/website/templates/report_ip.html b/website/templates/report_ip.html index 8593301b3..0f50a8df7 100644 --- a/website/templates/report_ip.html +++ b/website/templates/report_ip.html @@ -113,12 +113,6 @@
- -
@@ -168,36 +162,11 @@ const validationResult = document.getElementById('ip_address'); if (validateIP(ipInput)) { - - // validationResult.style.borderColor = 'green'; return true; } else { alert("invalid ip") - validationResult.style.borderColor = 'red'; return false; } } - - document.getElementById("check-duplicates").addEventListener("click", async function() { - const uri = document.getElementById("ip_address").value; - - const response = await fetch("/api/v1/urlcheck/", { - method: "POST", - headers: { - "Content-Type": "application/json" - }, - body: JSON.stringify({ "domain_url": uri }) - }); - - const data = await response.json(); - const duplicateList = document.getElementById("duplicate-list"); - duplicateList.innerHTML = ""; // Clear list - - data.forEach(issue => { - duplicateList.innerHTML += `
  • ${issue.description}
  • `; - }); - - document.getElementById("duplicate-container").style.display = "block"; - }); {% endblock after_js %}