how to make web-filter by IP

I need to make web-filter by IP that is I can control which IP can open some websites and which can’t .
is this available in Mikrotik systems or not? and if available how can i do that? and what is the best Mikrotik device for that if i need to control at lest 40 PC?.

thank you,
Ahmed Adel.

You can do this via L7 regex. or more simple, by “content”. any questions are welcomed.