Detete URLs maliciosos com o Web Risk

Antes de começar

Configure a autenticação e ative a API Web Risk

    Instale a CLI Google Cloud e, em seguida, inicie sessão na CLI gcloud com a sua identidade federada. Depois de iniciar sessão, inicialize a CLI gcloud executando o seguinte comando:

    gcloud init

    Create or select a Google Cloud project.

    Roles required to select or create a project

    • Select a project: Selecting a project doesn't require a specific IAM role—you can select any project that you've been granted a role on.
    • Create a project: To create a project, you need the Project Creator role (roles/resourcemanager.projectCreator), which contains the resourcemanager.projects.create permission. Learn how to grant roles.
    • Create a Google Cloud project:

      gcloud projects create PROJECT_ID

      Replace PROJECT_ID with a name for the Google Cloud project you are creating.

    • Select the Google Cloud project that you created:

      gcloud config set project PROJECT_ID

      Replace PROJECT_ID with your Google Cloud project name.

    Verify that billing is enabled for your Google Cloud project.

    Enable the Web Risk API:

    Roles required to enable APIs

    To enable APIs, you need the Service Usage Admin IAM role (roles/serviceusage.serviceUsageAdmin), which contains the serviceusage.services.enable permission. Learn how to grant roles.

    gcloud services enable webrisk.googleapis.com

    Usar as APIs

    Quando usar as APIs Web Risk, certifique-se de que conhece o contrato de nível de serviço e os limites de utilização do Web Risk.

    Para começar a usar o Web Risk, consulte estes tópicos:

    Qual é a API certa para mim? Procurar ou atualizar?

    O Web Risk oferece duas APIs diferentes que pode integrar. Estas APIs são a API Lookup e a