path_allowed: check if a bot has permissions to access page
Description
check if a bot has permissions to access page
Usage
path_allowed(permissions, path = "/", bot = "*")
Arguments
permissions
data.frame generated by rt_get_permissions() with
three columns: 'useragent' (name of the bot), 'permission' (permission
granted: Disallow/Allow) and 'value' (path for which permission applies)
path
path for which to check bot's permission, defaults to "/"
bot
name of the bot, defaults to "*"
Value
TRUE permission granted; FALSE permission denied; NA path_allowed()
cannot determine if path is allowed or not allowed, will result in a warning
as well