Hello,
I am using v4 of the safe-browsing API, and am running into some trouble. The API does not flag some malicious websites that both Chrome and Firefox browsers flag as unsafe. This is strange to me as it is my understanding that both this API and those browsers use the same data to check against.
Here is the body of my request:
{'client': {'clientId': 'opslog', 'clientVersion': '1.0.0'},
'threatInfo': {'platformTypes': ['ANY_PLATFORM'],
'threatEntries': [{'url': 'tripadvisor-co-uk.com'}],
'threatEntryTypes': ['THREAT_ENTRY_TYPE_UNSPECIFIED',
'URL',
'EXECUTABLE',
'IP_RANGE'],
'threatTypes': ['THREAT_TYPE_UNSPECIFIED',
'MALWARE',
'SOCIAL_ENGINEERING',
'UNWANTED_SOFTWARE',
'POTENTIALLY_HARMFUL_APPLICATION']}}
and the response:
I know my API is configured correctly, though, because the API does respond to some URLs... For example:
request:
{'client': {'clientId': 'opslog', 'clientVersion': '1.0.0'},
'threatInfo': {'platformTypes': ['ANY_PLATFORM'],
'threatEntries': [{'url': 'lupytehoq.com'}],
'threatEntryTypes': ['THREAT_ENTRY_TYPE_UNSPECIFIED',
'URL',
'EXECUTABLE',
'IP_RANGE'],
'threatTypes': ['THREAT_TYPE_UNSPECIFIED',
'MALWARE',
'SOCIAL_ENGINEERING',
'UNWANTED_SOFTWARE',
'POTENTIALLY_HARMFUL_APPLICATION']}}
response:
{u'matches': [{u'cacheDuration': u'300.000s',
u'platformType': u'ANY_PLATFORM',
u'threat': {u'url': u'lupytehoq.com'},
u'threatEntryType': u'URL',
u'threatType': u'MALWARE'}]}
(Note, the single quotes and unicode identifiers are there because I am using the python requests library and printing information about the response and this is how python is formatting it).
Thank you