def is_supported(self, user_agent_string):
user_agent_obj = user_agents.parse(user_agent_string)<EOL>browser_ok = True<EOL>for rule in self.exclusions:<EOL><INDENT>if rule in ["<STR_LIT>", "<STR_LIT>", "<STR_LIT>", "<STR_LIT>", "<STR_LIT>"]:<EOL><INDENT>if (<EOL>(rule == "<STR_LIT>" and user_agent_obj.is_mobile)<EOL>or (rule == "<STR_LIT>" and user_agent_obj.is_tablet)<EOL>or (rule == "<STR_LIT>" and user_agent_obj.is_touch_capable)<EOL>or (rule == "<STR_LIT>" and user_agent_obj.is_pc)<EOL>or (rule == "<STR_LIT>" and user_agent_obj.is_bot)<EOL>):<EOL><INDENT>browser_ok = False<EOL><DEDENT><DEDENT>elif rule in user_agent_string:<EOL><INDENT>browser_ok = False<EOL><DEDENT><DEDENT>return browser_ok<EOL>
Check user agent against configured exclusions.