Create a Ip verification website for fivem, its a web when you click to verify the firewall verifies your ip and you get whitelisted, if you don't verify you cant enter to that fivem server.
This is a web like this
[login to view URL]
hello,
pretty experienced fivem coder here, I believe I understood what you want perfectly and I can deliver it fast reply me with more details for a more specific timeframe.