Spaces:
Sleeping
Sleeping
Update whitelist.db
Browse files- whitelist.db +0 -15
whitelist.db
CHANGED
|
@@ -1,16 +1 @@
|
|
| 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!")
|
|
|
|
|
|
|
| 1 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|