Allow only request from a specific domain to read and write data firebase
The only way to restrict access to Realtime Database for certain users is through Firebase Authentication. There's no way to limit access to certain regions, IPs, or other ways of categorizing then end user.