Phantombot with .htaccess and bare IP

Good day. I have a short question.

Does Phantombot work with .htaccess? I want to block certain countries from accessing the panels. and only allow the IP’s from the streamer. I heard this was possible in a way but i have no idea how to achieve this. And does it work with the bare IP instead of full url.

I hope i explained my inquiry ok.
Regards