You can do simple steps like what Semi said 😄
Or if you want to explore you can probably start making custom relay proxy. imksoo/nostr-filter is a good start for me learning to make custom filter relay
https://github.com/imksoo/nostr-filter
Or just using strfry policy from AlexGleason