yes, this has had a lot of testing done and is used by quite a few nostr1.com relays currently. if youre using it on your own relay, you would make a slight modification to remove the multi-domain support and point it to whatever method you want to use for access control list lookup.
https://github.com/relaytools/interceptor
https://github.com/relaytools/interceptor-proxy
No docs maintained yet but nostr:nprofile1qqs8eseg5zxak2hal8umuaa7laxgxjyll9uhyxp86c522shn9gj8crspzemhxue69uhkyetkduhxummnw3erztnrdakj7qgwwaehxw309ahx7uewd3hkctcprfmhxue69uhkummnw3ezuargv4ekzmt9vdshgtnfduhsgjx9px can likely answer questions if you have any