diff --git a/src/utils/helpers.ts b/src/utils/helpers.ts
index f06859c3..d8537c5a 100644
--- a/src/utils/helpers.ts
+++ b/src/utils/helpers.ts
@@ -6,8 +6,8 @@ export function throwUnsupported(instance: object) {
 
 export function isValidUrl(str: string) {
   try {
-    new URL(str);
-    return true;
+    const url = new URL(str);
+    return url.protocol === "http" || url.protocol === "https";
   } catch (_) {
     return false;
   }