Check the below link for defining Resource filter in security rules. This might help.
Make use of a custom property to curtail access.
Along with that check the available resource filters:
Take a look at this video and blog:
There is also a video in the online help:
Let us know how you do.
Please mark the appropriate replies as CORRECT / HELPFUL so our team and other members know that your question(s) has been answered to your satisfaction.