Alternative for RewriteMap prg?

I need to implement access rule based on a specific DNS query (using DNS RBL) in Litespeed.

I'd have done it with Apache using RewriteMap prg and small python script to do DNS lookup and return 1 or 0.

How can I do that with Litespeed, as it looks like RewriteMap prg is not supported by Litespeed?

Thank you!