def forbid_web_access(f):
@wraps(f)<EOL>def wrapper_fn(*args, **kwargs):<EOL><INDENT>if isinstance(JobContext.get_current_context(), WebJobContext):<EOL><INDENT>raise ForbiddenError('<STR_LIT>')<EOL><DEDENT>return f(*args, **kwargs)<EOL><DEDENT>return wrapper_fn<EOL>
Forbids running task using http request.

:param f: Callable
:return Callable