<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def forbid_web_access(f):
 """ Forbids running task using http request. :param f: Callable :return Callable """


    @wraps(f)
    def wrapper_fn(*args, **kwargs):
        if isinstance(JobContext.get_current_context(), WebJobContext):
            raise ForbiddenError('Access forbidden from web.')

        return f(*args, **kwargs)

    return wrapper_fn