세이프 브라우징 목록
컬렉션을 사용해 정리하기
내 환경설정을 기준으로 콘텐츠를 저장하고 분류하세요.
이 문서는 다음 메서드에 적용됩니다.
목록 정보
세이프 브라우징 목록(위협 목록이라고도 함)
단순히 목록으로, Google에서 지속적으로 업데이트하는 안전하지 않은 웹 리소스 목록입니다.
안전하지 않은 웹 리소스의 예로는 소셜 엔지니어링 사이트 (피싱 및 사기성 사이트) 및
멀웨어나 원치 않는 소프트웨어를 호스팅하는 사이트를 방문하는 것입니다.
목록 이름
각 세이프 브라우징 목록은 다음 세 가지 매개변수 또는 유형 조합을 사용하여 이름이 지정 (식별됨)됩니다.
threatType
, platformType
, threatEntryType
(
ThreatListDescriptor).
클라이언트는 세이프 브라우징 서버에 요청을 전송하기 전에 먼저
현재 사용 가능한 세이프 브라우징 목록입니다. 이렇게 하면 매개변수 또는 유형이
모두 유효합니다.
세이프 브라우징 목록의 이름을 검색하려면
threatLists.list
메서드 및 HTTP GET
요청/응답입니다.
예: ThreatLists.list
HTTP GET 요청
요청에 헤더만 포함되어 있습니다 (요청 본문 없음).
요청 헤더에는 요청 URL과 콘텐츠 유형이 포함됩니다. 반드시
URL의 API_KEY
에 대한 API 키입니다.
GET https://safebrowsing.googleapis.com/v4/threatLists?key=API_KEY HTTP/1.1
Content-Type: application/json
요청 본문
이 메서드에는 요청 본문이 없습니다.
HTTP GET 응답
응답에서는 현재 쿼리 또는 다운로드에 사용할 수 있는 세이프 브라우징 목록을 반환합니다. 이
예를 들어 두 개의 목록만 표시되지만 추가 목록을 사용할 수 있어 반환됩니다.
응답 헤더에는 HTTP 상태 코드가 포함됩니다.
지정할 수 있습니다.
HTTP/1.1 200 OK
Content-Type: application/json
응답 본문
세이프 브라우징 목록이 위협 목록의 배열로 반환됩니다. 앞서 설명한 것처럼 각
목록은 threatType
, platformType
,
threatEntryType
입니다.
{
threatLists: [{
"threatType": "MALWARE",
"platformType": "WINDOWS",
"threatEntryType": "URL",
}, {
"threatType": "MALWARE",
"platformType": "LINUX",
"threatEntryType": "URL",
}, {
... additional lists will be returned ...
}]
}
콘텐츠 나열
현재 모든 세이프 브라우징 목록은 4~32의 가변 길이 SHA 256 해시로 구성됩니다.
바이트. 이러한 해시는 안전하지 않은 URL과 연결된 URL의 접미사/접두사 표현식을 기반으로 합니다.
웹 리소스를 제공합니다 URL 자체는 세이프 브라우징 목록에 저장되지 않습니다.
(URL 및 해시 참고).
Lookup API를 사용하여 URL을 확인할 때 클라이언트는 요청에 실제 URL을 보내고
세이프 브라우징 서버에서 검사를 수행하기 전에 URL을 해시로 변환합니다.
Lookup API의 URL 확인을 참고하세요.
Update API를 사용하여 URL을 확인할 때 클라이언트는 URL을 해시로 변환한 다음
URL 검사를 수행하기 위해 요청에서 해시 접두어를 추가
Update API의 URL 확인을 참조하세요.
달리 명시되지 않는 한 이 페이지의 콘텐츠에는 Creative Commons Attribution 4.0 라이선스에 따라 라이선스가 부여되며, 코드 샘플에는 Apache 2.0 라이선스에 따라 라이선스가 부여됩니다. 자세한 내용은 Google Developers 사이트 정책을 참조하세요. 자바는 Oracle 및/또는 Oracle 계열사의 등록 상표입니다.
최종 업데이트: 2025-07-25(UTC)
[[["이해하기 쉬움","easyToUnderstand","thumb-up"],["문제가 해결됨","solvedMyProblem","thumb-up"],["기타","otherUp","thumb-up"]],[["필요한 정보가 없음","missingTheInformationINeed","thumb-down"],["너무 복잡함/단계 수가 너무 많음","tooComplicatedTooManySteps","thumb-down"],["오래됨","outOfDate","thumb-down"],["번역 문제","translationIssue","thumb-down"],["샘플/코드 문제","samplesCodeIssue","thumb-down"],["기타","otherDown","thumb-down"]],["최종 업데이트: 2025-07-25(UTC)"],[[["\u003cp\u003eGoogle Safe Browsing maintains constantly updated lists of unsafe web resources, including phishing sites and those hosting malware.\u003c/p\u003e\n"],["\u003cp\u003eEach list is identified by \u003ccode\u003ethreatType\u003c/code\u003e, \u003ccode\u003eplatformType\u003c/code\u003e, and \u003ccode\u003ethreatEntryType\u003c/code\u003e, which can be retrieved using the \u003ccode\u003ethreatLists.list\u003c/code\u003e method.\u003c/p\u003e\n"],["\u003cp\u003eSafe Browsing lists contain SHA256 hashes derived from prefixes/suffixes of unsafe URLs, not the full URLs themselves.\u003c/p\u003e\n"],["\u003cp\u003eWhen using the Lookup API, you submit the URL directly, while the Update API requires you to pre-calculate and submit URL hashes.\u003c/p\u003e\n"]]],["The document outlines methods for interacting with Google's Safe Browsing lists, which contain unsafe web resource data. To access these lists, clients use `threatLists.list` via an HTTP GET request, including an API key in the URL. The response returns an array of available threat lists, each defined by `threatType`, `platformType`, and `threatEntryType`. These lists consist of SHA256 hashes. Lookup API sends URLs, Update API sends hashed URL prefixes. The lists are available via the Lookup and Update APIs.\n"],null,["# Safe Browsing Lists\n\nThis document applies to the following methods:\n\n- [Lookup API (v4)](/safe-browsing/v4/lookup-api): [threatMatches.find](/safe-browsing/v4/lookup-api#example-threatmatchesfind)\n- [Update API (v4)](/safe-browsing/v4/update-api): [fullHashes.find](/safe-browsing/v4/update-api#example-fullhashesfind)\n- [Update API (v4)](/safe-browsing/v4/update-api): [threatListUpdates.fetch](/safe-browsing/v4/update-api#example-threatlistupdatesfetch)\n\nAbout the lists\n---------------\n\nThe Safe Browsing lists---also referred to as **threat lists** or\nsimply **lists**---are Google's constantly updated lists of unsafe web resources.\nExamples of unsafe web resources are social engineering sites (phishing and deceptive sites) and\nsites that host malware or unwanted software.\n\nList names\n----------\n\nEach Safe Browsing list is named (identified) using three parameters or type combinations:\nthe `threatType`, `platformType`, and `threatEntryType` (see\n[ThreatListDescriptor](/safe-browsing/reference/rest/v4/threatLists/list#ThreatListDescriptor)).\n\nBefore sending a request to the Safe Browsing servers, the client should retrieve the names of the\n*currently available* Safe Browsing lists. This will help ensure that the parameters or type\ncombinations specified in the request are valid.\n\nTo retrieve the names of the Safe Browsing lists, use the\n[threatLists.list](/safe-browsing/reference/rest/v4/threatLists/list)\nmethod and HTTP `GET` request/response.\n\nExample: threatLists.list\n-------------------------\n\n### HTTP GET request\n\nThe request includes a header only (no request body).\n\n#### Request header\n\nThe request header includes the request URL and the content type. Remember to substitute your\nAPI key for `API_KEY` in the URL. \n\n```http\nGET https://safebrowsing.googleapis.com/v4/threatLists?key=API_KEY HTTP/1.1\nContent-Type: application/json\n```\n\n#### Request body\n\nThere is no request body for this method.\n\n### HTTP GET response\n\nThe response returns the Safe Browsing lists currently available for query or download. In this\nexample, only two lists are shown, but additional lists are available and will be returned.\n\n#### Response header\n\nThe response header includes the [HTTP status code](/safe-browsing/v4/status-codes)\nand the content type. \n\n```http\nHTTP/1.1 200 OK\nContent-Type: application/json\n```\n\n#### Response body\n\nThe Safe Browsing lists are returned as an array of threat lists. As noted, each\nlist is defined by three parameters or type combinations: the `threatType`, `platformType`, and\n`threatEntryType`. \n\n```text\n{\n threatLists: [{\n \"threatType\": \"MALWARE\",\n \"platformType\": \"WINDOWS\",\n \"threatEntryType\": \"URL\",\n }, {\n \"threatType\": \"MALWARE\",\n \"platformType\": \"LINUX\",\n \"threatEntryType\": \"URL\",\n }, {\n ... additional lists will be returned ...\n }]\n}\n```\n\nList contents\n-------------\n\nCurrently, all Safe Browsing lists consist of variable length SHA 256 hashes between 4 and 32\nbytes. These hashes are based on the suffix/prefix expressions of the URLs associated with unsafe\nweb resources. Note that the URLs themselves are not stored in the Safe Browsing lists\n(see [URLs and Hashes](/safe-browsing/v4/urls-hashing)).\n\nWhen using the Lookup API to check URLs, the client sends the actual URL in the request and\nSafe Browsing server converts the URL to a hash before performing the check\n(see [Checking URLs](/safe-browsing/v4/lookup-api#checking-urls) for the Lookup API).\n\nWhen using the Update API to check URLs, the client must convert the URL to a hash and then send\nthe hash prefix in the request in order to perform the URL check\n(see [Checking URLs](/safe-browsing/v4/update-api#checking-urls) for the Update API)."]]