Skip to content

Instantly share code, notes, and snippets.

@martcbio
martcbio / ghostty-localhost.wL7Ps5nYI4.lsrules
Created October 13, 2025 13:55
Ghostty localhost-only (.lsrules)
{
"name": "Ghostty — Localhost Only",
"description": "Allow Ghostty to 127.0.0.1/::1, deny everything else.",
"rules": [
{ "action": "allow", "priority": "high",
"process": "/Applications/Ghostty.app/Contents/MacOS/Ghostty",
"remote-addresses": "127.0.0.1" },
{ "action": "allow", "priority": "high",
"process": "/Applications/Ghostty.app/Contents/MacOS/Ghostty",
"remote-addresses": "::1" },
@martcbio
martcbio / ghostty-localhost.DHIBgf4gUL.lsrules
Created October 13, 2025 13:54
Ghostty localhost-only (.lsrules)
{
"name": "Ghostty — Localhost Only",
"description": "Allow Ghostty to 127.0.0.1/::1, deny everything else.",
"rules": [
{ "action": "allow", "priority": "high",
"process": "/Applications/Ghostty.app/Contents/MacOS/Ghostty",
"remote-addresses": "127.0.0.1" },
{ "action": "allow", "priority": "high",
"process": "/Applications/Ghostty.app/Contents/MacOS/Ghostty",
"remote-addresses": "::1" },