问题标签 [safe-browsing-api]

For questions regarding programming in ECMAScript (JavaScript/JS) and its various dialects/implementations (excluding ActionScript). Note JavaScript is NOT the same as Java! Please include all relevant tags on your question; e.g., [node.js], [jquery], [json], [reactjs], [angular], [ember.js], [vue.js], [typescript], [svelte], etc.

0 投票
0 回答
207 浏览

google-api - 从 Google 安全浏览 api 获得空白响应

我正在使用邮递员向谷歌安全浏览 api 发送一个发布请求,但我得到一个空白响应,状态为 200 ok

0 投票
1 回答
403 浏览

php - 谷歌安全浏览没有检测到网址,即使它是不安全的网址

我正在使用 Google 安全浏览 Lookup api v4,但某些 url 没有被 api 检测到,即使它不安全。我的请求数据和请求标头如下:

我在一个请求中发送 500 个 url 中的 url。任何人都可以帮我解决这个问题吗?我的请求中缺少什么或做任何其他事情来检测不安全的 url。此外,我尝试仅在请求中发送该不安全的 url,但无法得到它以响应它不安全。

0 投票
2 回答
877 浏览

java - google Safebrowsing api v4 总是返回空响应

我在我的 android 代码中使用安全浏览 api v4。我正在使用 Asynctask 并使用 httpurlconnection 请求安全浏览 api。响应始终为空。

我也使用测试 URL http://malware.testing.google.test/testing/malware/测试了我的连接,然后它也返回空。

对于测试 url,它也显示安全。api 面板显示请求已发出,我不知道我在做什么错,我使用的是最新版本的 V4 API,但无论使用什么 URL,始终显示它是安全的.

0 投票
0 回答
64 浏览

safe-browsing - 为什么浏览器通过安全浏览阻止特定 URL,但安全浏览 API 不说 URL 是危险的?

目前我在我的网络服务上实现谷歌安全浏览以过滤危险的 URL。当我测试某些特定的恶意 URL 时,我发现使用fullHashes:findAPI 方法的浏览器将某些特定的 URL 检测为危险的,但是threatMatches:find对于所有可能的威胁类型和平台来说,相同的 URL 是安全的。我按照 google safebrowsing 文档的说法预处理了这个 URL,并发现我的本地数据库由 google safebrowsing update API v4 获取,既不包含前缀也不包含完整散列。为什么fullHashes:find将某些 url 检测为危险而 threatMatches:find没有检测到?

0 投票
1 回答
15548 浏览

google-app-engine - How to fix the "Invalid JSON payload received. Unknown name" error

I try to get a proper response from the Google Safe Browsing API v4. Although I get the error "Invalid JSON payload received. Unknown name".

I have used a payload based on the payload example mentioned at https://developers.google.com/safe-browsing/v4/lookup-api

I have problems with the payload. I think it should be a string, not a real dict. When I use a dict I get the error: TypeError: has type , but expected one of: str, unicode

The code I used is:

The url is (with [api-key] is of course my api-key):

The payload is the following string (not a python dict):

As output I expected some JSON which indicates that this url is safe. However I get the following result:

Any ideas, what is wrong?

Thanks

0 投票
1 回答
110 浏览

google-cloud-platform - 为什么我在尝试设置 Google 安全浏览数据库时收到“未找到 sbserver”错误?

我到达了这个GitHub存储库。关于谷歌安全浏览数据库。

我从未使用过 go,但我认为它现在是必需的。所以我安装它使用:

然后,我按照 GitHub 页面中的说明进行操作。我执行了:

但是在我执行命令的路径中没有安装任何东西。但是,我继续:

然后手册说,运行以下命令(这是两行,我执行了第一行,然后按回车,然后没有任何变化。然后分别执行第二行:

执行第二行后,我得到了这个错误:

你能指出我有什么问题吗?如何安装谷歌安全浏览数据库?

0 投票
0 回答
127 浏览

php - PHP 安全浏览返回空字符串

这个 PHP 文件用于通过安全浏览了解网站是否安全。

输出应类似于此响应正文

但目前我的输出是{}

一开始我试图通过这个网址

curl_init(),但在这种情况下,返回的状态是0

0 投票
1 回答
720 浏览

javascript - Safebrowsing API 返回“收到无效的 JSON 有效负载”

我正在使用安全浏览 API 从我的数据库中检查一些 URL,但请求给了我这个结果:

我正在尝试以下代码:

我预计请求的输出是 {},此示例中的状态代码为 200。

0 投票
1 回答
56 浏览

php - 如何使用 safebrowsing - api 处理重定向?

我有一个允许其他人共享网址的网站。为了确保没有人进入“邪恶”网站,我使用了 google safebrowsing api:

按设计工作。因此,如果我添加像thisisevil.comapi-call 这样的网络钓鱼站点,则会返回警告。

但是,如果有人使用这样的 url 缩短tny.sh/abcefg器,然后重定向到thisisevil.comsafebrowsing-api 并不会向我显示存在威胁。

有没有办法告诉安全浏览 api 遵循重定向?

0 投票
1 回答
186 浏览

.net - Google Safe Browsing API v4 implementation with C# returns null response

I am trying to lookup/scan the status of URLs with the Google Safe Browsing API v4, I tried the method I found in this link How to use Google Safe Browsing (v4) with .NET, but i get a null response returned.

Here's the code:

My Response:

At this point I feel I am doing something very wrong and I need HELP!!!