Skip to content

AutoGPT is the vision of accessible AI for everyone, to use and to build on. Our mission is to provide the tools, so that you can focus on what matters.

internal resource request bug

REal0daya2a6f84f139b
diff --git a/autogpt/commands/web_requests.py b/autogpt/commands/web_requests.py
index 50d8d383cb..70ada90741 100644
--- a/autogpt/commands/web_requests.py
+++ b/autogpt/commands/web_requests.py
@@ -58,9 +58,28 @@ def check_local_file_access(url: str) -> bool:
"""
local_prefixes = [
"file:///",
+ "file://localhost/",
"file://localhost",
"http://localhost",
+ "http://localhost/",
"https://localhost",
+ "https://localhost/",
+ "http://2130706433",
+ "http://2130706433/",
+ "https://2130706433",
+ "https://2130706433/",
+ "http://127.0.0.1/",
+ "http://127.0.0.1",
+ "https://127.0.0.1/",
+ "https://127.0.0.1",
+ "https://0.0.0.0/",
+ "https://0.0.0.0",
+ "http://0.0.0.0/",
+ "http://0.0.0.0",
+ "http://0000",
+ "http://0000/",
+ "https://0000",
+ "https://0000/"
]
return any(url.startswith(prefix) for prefix in local_prefixes)