Skip to content

Instantly share code, notes, and snippets.

@k-ison
k-ison / gist:3d113dca076ea2cb44beedfe9d196a55
Created May 13, 2025 18:01
Blocking IP address from requesting through REST API using Edge Functions
JAVSCRIPT CODE SNIPPET:
=======================
import { createClient } from '@supabase/supabase-js';
// Initialize Supabase client
const supabaseUrl = 'https://<project-ref>.supabase.co'; // Replace with your project URL
const supabaseKey = 'ANON OR SERVICE_ROLE'; // Replace with your Supabase anon or service key
const supabase = createClient(supabaseUrl, supabaseKey);