adAstra144 commited on
Commit
42e1e4a
·
verified ·
1 Parent(s): 93afc84

Create whitelist.db

Browse files
Files changed (1) hide show
  1. whitelist.db +16 -0
whitelist.db ADDED
@@ -0,0 +1,16 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ import sqlite3
2
+
3
+ conn = sqlite3.connect("whitelist.db")
4
+ cursor = conn.cursor()
5
+
6
+ cursor.execute("DROP TABLE IF EXISTS whitelist")
7
+ cursor.execute("CREATE TABLE whitelist (domain TEXT PRIMARY KEY)")
8
+
9
+ # Insert some safe domains
10
+ safe_sites = ["google.com", "microsoft.com", "openai.com"]
11
+ for site in safe_sites:
12
+ cursor.execute("INSERT INTO whitelist (domain) VALUES (?)", (site,))
13
+
14
+ conn.commit()
15
+ conn.close()
16
+ print("Tiny whitelist.db created!")