قوائم التصفح الآمن
تنظيم صفحاتك في مجموعات
يمكنك حفظ المحتوى وتصنيفه حسب إعداداتك المفضّلة.
ينطبق هذا المستند على الطرق التالية:
لمحة عن القوائم
قوائم "التصفّح الآمن" التي يُشار إليها أيضًا باسم قوائم التهديدات
ببساطة القوائم، هي قوائم يتم تعديلها باستمرار من Google لمصادر الويب غير الآمنة.
ومن أمثلة موارد الويب غير الآمنة مواقع الهندسة الاجتماعية (التصيّد الاحتيالي والمواقع الخادعة)
المواقع التي تستضيف برامج ضارة أو برامج غير مرغوب فيها.
أسماء القوائم
تتم تسمية كل قائمة من قوائم "التصفُّح الآمن" (يتم التعرُّف عليها) باستخدام ثلاث مَعلمات أو مجموعات أنواع:
threatType
وplatformType
وthreatEntryType
(اطّلِع على
ThreatListDescriptor).
قبل إرسال طلب إلى خوادم التصفح الآمن، يجب على العميل استرداد أسماء
قوائم "التصفّح الآمن" المتاحة حاليًا سيساعد هذا في ضمان أن المعاملات أو النوع
المجموعات المحددة في الطلب صالحة.
لاسترداد أسماء قوائم التصفح الآمن، استخدم
threatLists.list
والاستجابة لطلب/استجابة HTTP GET
.
مثال: ierLists.list
طلب HTTP GET
يشتمل الطلب على عنوان فقط (بدون نص طلب).
يتضمّن عنوان الطلب عنوان URL للطلب ونوع المحتوى. تذكر أن تقوم باستبدال
مفتاح واجهة برمجة التطبيقات API_KEY
في عنوان URL.
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 ...
}]
}
محتوى القائمة
في الوقت الحالي، تتكون جميع قوائم "التصفح الآمن" من تجزئات SHA 256 ذات طول متغير بين 4 و32
بايت. وتستند علامات التجزئة هذه إلى تعبيرات اللاحقة أو البادئة لعناوين URL المرتبطة بالعناوين غير الآمنة.
موارد الويب هذه. تجدر الإشارة إلى أنّه لا يتم تخزين عناوين URL نفسها في قوائم "التصفّح الآمن".
(راجِع عناوين URL وعلامات التجزئة).
عند استخدام واجهة برمجة تطبيقات البحث لفحص عناوين URL، يرسل العميل عنوان URL الفعلي في الطلب
يحوّل خادم ميزة "التصفّح الآمن" عنوان URL إلى تجزئة قبل إجراء عملية التحقّق.
(يمكنك الاطّلاع على التحقق من عناوين URL لواجهة برمجة تطبيقات البحث).
عند استخدام واجهة برمجة التطبيقات Update API للتحقّق من عناوين URL، على العميل تحويل عنوان URL إلى تجزئة ثمّ إرساله.
بادئة التجزئة في الطلب لإجراء فحص عنوان URL
(يمكنك الاطّلاع على التحقق من عناوين URL الخاصة بواجهة برمجة التطبيقات الخاصة بالتحديث).
إنّ محتوى هذه الصفحة مرخّص بموجب ترخيص Creative Commons Attribution 4.0 ما لم يُنصّ على خلاف ذلك، ونماذج الرموز مرخّصة بموجب ترخيص Apache 2.0. للاطّلاع على التفاصيل، يُرجى مراجعة سياسات موقع Google Developers. إنّ Java هي علامة تجارية مسجَّلة لشركة Oracle و/أو شركائها التابعين.
تاريخ التعديل الأخير: 2025-07-25 (حسب التوقيت العالمي المتفَّق عليه)
[[["يسهُل فهم المحتوى.","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 (حسب التوقيت العالمي المتفَّق عليه)"],[[["\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)."]]