Google safe browsing api
Author: f | 2025-04-24
An introduction to Google Safe Browsing API What is Google Safe Browsing API? Google Safe Browsing API is a public API offered by Google that helps developers to protect their Invalid Request in Google Safe-Browsing Lookup API. 2. Google SafeBrowsing Lookup API - PHP. 2. File not found - Google Safe Browsing Lookup API. 1. cURL to get response from Google Safe Browsing Lookup. 1. google safe browsing lookup api code for java. 2. Google safe browsing returning 400 bad request. 1.
Google Safe Browsing API Public APIs
Memulai Tetap teratur dengan koleksi Simpan dan kategorikan konten berdasarkan preferensi Anda. Penyiapan umum Jika menggunakan Lookup API atau Update API, Anda memerlukan Akun Google, proyek Google Developer Console, dan kunci API. Anda juga perlu mengaktifkan Safe Browsing API untuk digunakan dengan project Anda. Jika Anda memerlukan bantuan tambahan terkait langkah-langkah di bawah, lihat Pusat Bantuan Konsol API Google. 1. Dapatkan akun Anda memerlukan Akun Google untuk membuat project. Jika Anda belummemiliki akun, daftar di Membuat Akun Google. 2. Membuat project Anda memerlukan project Google Developer Console untuk membuat kunci API. Jika Anda tidak sudah memiliki proyek, lihat Membuat, menonaktifkan, dan memulihkan project. 3. Menyiapkan kunci API Anda memerlukan kunci API untuk mengakses API Safe Browsing. Kunci API mengotentikasi Anda sebagai API dan memungkinkan Anda berinteraksi dengan API. Anda meneruskan kunci ini sebagai parameter URL di permintaan HTTP Anda ke server Safe Browsing. Misalnya, ganti kunci API Anda dengan API_KEY ditampilkan di sini: Untuk menyiapkan kunci API, lihat Menyiapkan kunci API. Kunci API baru Anda akan muncul di tabel—salin dan tempel kunci ini sesuai kebutuhan. 4. Mengaktifkan API Terakhir, Anda perlu mengaktifkan Safe Browsing API untuk digunakan dengan project Anda. Untuk mempelajari cara melakukannya, lihat Mengaktifkan dan menonaktifkan API. API yang akan diaktifkan disebut sebagai "Safe Browsing API". Penyiapan database Jika menggunakan Update API, Anda juga perlu menyiapkan database lokal. Safe Browsing menyediakan paket Go yang dapat Anda gunakan untuk memulai. Untuk informasi lebih lanjut, lihat bagian Penyiapan {i>DatabaseDatabase Lokal. Menggunakan API Sebelum memulai, baca Persyaratan Layanan dan Panduan Harga. Tinjau juga dan pastikan Anda memahami Batas Penggunaan untuk API Safe Browsing. Untuk mulai menggunakan API Safe Browsing, lihat panduan ini: API Pencarian (v4) Mengupdate API (v4)
Google Safe Browsing APIPublic APIs
ภาพรวม Lookup API ทำให้แอปพลิเคชันไคลเอ็นต์สามารถส่งคำขอไปยัง Google Safe Browsing ได้เพื่อตรวจสอบว่ามี URL อยู่ในรายการของ Google Safe Browsing หรือไม่ หากพบ URL ในรายการเพิ่มเติม ระบบจะแสดงข้อมูลการจับคู่ การตรวจสอบ URL หากต้องการตรวจสอบว่า URL อยู่ในรายการ Google Safe Browsing หรือไม่ ให้ส่งคำขอ HTTP POST ไปยัง threatMatches.find วิธีการ: คำขอ HTTP POST มี URL ได้สูงสุด 500 รายการ URL ต้องถูกต้อง (ดู RFC 2396) แต่ไม่จำเป็นต้องเป็นหน้า Canonical หรือเข้ารหัส การตอบกลับ HTTP POST จะแสดงผล URL ที่ตรงกันพร้อมกับระยะเวลาของแคช ตัวอย่าง: ThreatMatches.findคำขอ HTTP POST ในตัวอย่างต่อไปนี้ มีการส่งรายการ Google Safe Browsing 2 รายการและ URL 3 รายการไปยังเซิร์ฟเวอร์ไปยัง เพื่อดูว่ามีการจับคู่ที่ตรงกันหรือไม่ ส่วนหัวของคำขอประกอบด้วย URL ของคำขอและประเภทเนื้อหา อย่าลืมแทนที่ คีย์ API สำหรับ API_KEY ใน URL POST HTTP/1.1 Content-Type: application/json เนื้อหาของคำขอเนื้อหาคำขอมีข้อมูลไคลเอ็นต์ (รหัสและเวอร์ชัน) และข้อมูลภัยคุกคาม(ชื่อรายการและ URL) ดูรายละเอียดเพิ่มเติมได้ที่threatMatches.find เนื้อหาคำขอและคำอธิบายที่เป็นไปตามตัวอย่างโค้ด { "client": { "clientId": "yourcompanyname", "clientVersion": "1.5.2" }, "threatInfo": { "threatTypes": ["MALWARE", "SOCIAL_ENGINEERING"], "platformTypes": ["WINDOWS"], "threatEntryTypes": ["URL"], "threatEntries": [ {"url": " {"url": " {"url": " ] } }ข้อมูลลูกค้า ช่อง clientID และ clientVersion ควรระบุการใช้งานของไคลเอ็นต์โดยไม่ซ้ำกัน ไม่ใช่ผู้ใช้รายบุคคล (ข้อมูลไคลเอ็นต์จะใช้สำหรับการบันทึกและการทำบัญชีฝั่งเซิร์ฟเวอร์ โดยคุณเลือกชื่อใดก็ได้สำหรับรหัสไคลเอ็นต์ แต่เราขอแนะนำให้คุณเลือกชื่อที่แสดงถึงตัวตนที่แท้จริงของเช่น ชื่อบริษัท แสดงเป็นคำเดียวโดยใช้ตัวพิมพ์เล็กทั้งหมด)รายการ Google Safe Browsingช่อง threatType, platformType และ threatEntryTypeจะถูกรวมเข้าด้วยกันเพื่อระบุ (ชื่อ) รายการ Safe Browsing ในตัวอย่างนี้ เราจะระบุรายการ 2 รายการดังนี้MALWARE/WINDOWS/URL และ SOCIAL_ENGINEERING/WINDOWS/URL ก่อนส่งคำขอ โปรดตรวจสอบว่าประเภทชุดค่าผสมที่คุณระบุถูกต้อง (ดูรายการ Google Safe Browsing)URL ภัยคุกคามในตัวอย่างนี้ อาร์เรย์ threatEntries มี URL 3 รายการ (urltocheck1.org, urltocheck2.org,และ urltocheck3.org) ที่จะนำไปตรวจสอบกับ Google Safe Browsing ทั้ง 2 รายการหมายเหตุ: Lookup API และเมธอด threatMatches ควรใช้ช่อง URL เสมอห้ามระบุช่อง hash (ดู ThreatEntry)การตอบกลับ HTTP POSTในตัวอย่างต่อไปนี้ การตอบกลับจะแสดงค่าที่ตรงกัน 2 จาก 3 URL ที่ระบุไว้ในส่วน พบคำขอใน 1 จาก 2 รายการของ Google Safe Browsing ที่ระบุไว้ในคำขอส่วนหัวการตอบกลับจะมีรหัสสถานะ HTTPและประเภทเนื้อหาHTTP/1.1 200 OKContent-Type: application/jsonเนื้อหาการตอบกลับเนื้อหาการตอบกลับมีข้อมูลการจับคู่ (ชื่อรายการและ URL ที่พบในรายการเหล่านั้น ข้อมูลเมตา (หากมี) และระยะเวลาของแคช) ดูรายละเอียดเพิ่มเติมได้ที่threatMatches.find เนื้อหาการตอบกลับและคำอธิบายที่เป็นไปตามตัวอย่างโค้ดหมายเหตุ: หากไม่มีรายการที่ตรงกัน (หมายถึงไม่มี URL ที่ระบุในคำขอจะอยู่ในรายการใดก็ได้ที่ระบุในคำขอ) การตอบกลับ HTTP POSTจะแสดงผลเป็นออบเจ็กต์ว่างในส่วนเนื้อหาของคำตอบ{ "matches": [{ "threatType": "MALWARE", "platformType": "WINDOWS", "threatEntryType": "URL", "threat": {"url": " "threatEntryMetadata": { "entries": [{ "key": "malware_threat_type", "value": "landing" }] }, "cacheDuration": "300.000s" }, { "threatType": "MALWARE", "platformType": "WINDOWS", "threatEntryType": "URL", "threat": {"url": " "threatEntryMetadata": { "entries": [{ "key": "malware_threat_type", "value": "landing" }] }, "cacheDuration": "300.000s" }]}ตรงกับออบเจ็กต์ matches แสดงชื่อรายการ Google Safe Browsing และ URL หากนั่นคือรายการที่ตรงกัน ในตัวอย่างนี้ พบ URL สองแห่ง (urltocheck1.org และ urltocheck2.org) ที่หนึ่งในรายการ Google Safe Browsing (มัลแวร์/WINDOWS/URL) เพื่อแสดงข้อมูลที่ตรงกัน URL ที่ 3ไม่พบ (urltocheck3.org) ในทั้ง 2 รายการ จึงไม่มีข้อมูลแสดงผลสำหรับ URL นี้ ข้อมูลเมตาฟิลด์ threatEntryMetadata จะระบุหรือไม่ก็ได้ และให้ข้อมูลเพิ่มเติมเกี่ยวกับการจับคู่ภัยคุกคาม ปัจจุบันข้อมูลเมตาใช้ได้กับรายการ Google Safe Browsing มัลแวร์/WINDOWS/URL(ดูข้อมูลเมตา)ระยะเวลาของแคชช่อง cacheDuration ระบุระยะเวลาที่ URL ต้องถือว่าไม่ปลอดภัย(ดูการแคช)Safe Browsing API - Google Developers
Security for you and other web users. You can always choose to visit an unsafe site or download a dangerous file after you get a warning from Chrome. Change your Safe Browsing settings Important: If you turn off Safe Browsing, Chrome can't protect you from websites that try to steal your information or install harmful software. We recommend some level of protection. Computer On your computer, open Chrome. At the top right, select More Settings Privacy and security Security. Select the level of protection that you want to use. Android On your Android device, open Chrome . At the top right, tap More Settings Privacy and security Safe Browsing. Select the level of protection that you want to use. iOS On your iPhone or iPad, open Chrome . At the bottom right, tap More Settings Privacy and security Safe Browsing. Select the level of protection that you want to use. Change your Make searches and browsing better settings When 'Make searches and browsing better' is turned on, Chrome sends URLs of the pages that you visit to improve your browsing experience and security. Learn more about URLs from private browsing activity and Incognito mode. Computer On your computer, open Chrome. At the top right, select More Settings You and Google Sync and Google services. Turn Make searches and browsing better on or off. Android On your Android device, open Chrome . At the top right, tap More Settings Google services. Turn Make searches and browsing better on or off. iOS On your iPhone or iPad, open Chrome . At the bottom right, tap More Settings Google Services. Turn Make searches and browsing better on or off. Related resources Google Chrome blocks some downloads Manage Chrome safety and security Manage warnings about unsafe sites Choose your Safe Browsing protection level in Chrome Was this helpful?How can we improve it?. An introduction to Google Safe Browsing API What is Google Safe Browsing API? Google Safe Browsing API is a public API offered by Google that helps developers to protect their Invalid Request in Google Safe-Browsing Lookup API. 2. Google SafeBrowsing Lookup API - PHP. 2. File not found - Google Safe Browsing Lookup API. 1. cURL to get response from Google Safe Browsing Lookup. 1. google safe browsing lookup api code for java. 2. Google safe browsing returning 400 bad request. 1.Safe Browsing API - Google Search
James Gardnerunread,Oct 29, 2017, 5:14:22 PM10/29/17to Google Safe Browsing APIHow can I get my website to appear on I search for my website I get this message -Current statusNo available dataDoes Google automatically add a website over time or you can add it manually? I've added my website to Google WebMaster Tools but I don't see an option to submit the site to safe browsing? Any idea how to get this working?I've looked at the guides here - not sure if I've implemented it correctly its all a bit too technical!Using second post example PHP found on this website I believe the output I get is correct -I get the following output -HTTP/1.1 200 OKContent-Type: application/json; charset=UTF-8Date: Mon, 30 Oct 2017 00:04:30 GMTServer: ESFCache-Control: privateX-XSS-Protection: 1; mode=blockX-Frame-Options: SAMEORIGINX-Content-Type-Options: nosniffAlt-Svc: quic=":443"; ma=2592000; v="41,39,38,37,35"Accept-Ranges: noneVary: Accept-EncodingTransfer-Encoding: chunked{}Thanks for your help Ben Sandersunread,Nov 1, 2017, 2:45:14 PM11/1/17to Google Safe Browsing APIIt is automatic. For the purposes of the Safe Browsing API, we return an empty response if the given site does not match any blacklists. So in that case, knowing the site to be safe or not knowing about the site at all have the same response.The transparency report is a bit smarter and makes some determination between "no data" and "probably safe". So no-data means we just haven't scanned your site yet. If your site becomes popular, it will be scanned more frequently.Google Safe Browsing API - PublicAPI
เมื่อใช้ Google Safe Browsing ใน Chrome คุณจะได้รับคำเตือนที่ช่วยปกป้องคุณจากมัลแวร์ เว็บไซต์และส่วนขยายที่มีการละเมิด ฟิชชิง โฆษณาที่เป็นอันตรายและรบกวน รวมถึงการโจมตีแบบวิศวกรรมสังคมGoogle Safe Browsing จะทำการ Crawl และวิเคราะห์อินเทอร์เน็ตเพื่อค้นหาเว็บไซต์ที่อาจเป็นอันตราย และนำไปเพิ่มลงในรายการ ทุกครั้งที่คุณเข้าชมเว็บไซต์หรือพยายามดาวน์โหลด Chrome จะตรวจสอบกับ Google Safe Browsing ตามระดับการปกป้องที่เลือกไว้คุณมีตัวเลือกดังนี้ การปกป้องที่ดียิ่งขึ้น: ประสบการณ์การท่องเว็บที่ปลอดภัยที่สุดของ Google ที่ช่วยให้ปลอดภัยจากอันตรายใหม่ๆ ที่พบได้ทั่วไปและที่อาจเกิดขึ้น การปกป้องแบบมาตรฐาน: โดยค่าเริ่มต้น การปกป้องแบบมาตรฐานจะช่วยให้ปลอดภัยจากอันตรายที่ทราบอยู่แล้ว ไม่มีการปกป้อง (ไม่แนะนำ): คุณสามารถปิด Google Safe Browsing ได้ด้วย แต่จะไม่ได้รับการปกป้องจากเว็บไซต์ การดาวน์โหลด และส่วนขยายที่อาจเป็นอันตราย การตั้งค่า Google Safe Browsing ในผลิตภัณฑ์อื่นๆ ของ Google จะไม่ได้รับผลกระทบคุณเลือกที่จะเข้าชมเว็บไซต์ที่ไม่ปลอดภัยหรือดาวน์โหลดไฟล์ได้หลังจากได้รับคำเตือนจาก Chromeเกี่ยวกับระดับการปกป้องของ Google Safe Browsingการปกป้องที่ดียิ่งขึ้น เมื่อเปิดการปกป้องที่ดียิ่งขึ้น คุณจะได้รับคำเตือนเกี่ยวกับเว็บไซต์ การดาวน์โหลด และส่วนขยายที่อาจเป็นอันตราย รวมถึงอันตรายที่ Google ไม่เคยทราบมาก่อน เมื่อคุณเข้าชมเว็บไซต์ Chrome จะส่ง URL ของเว็บไซต์และตัวอย่างส่วนเล็กๆ ของเนื้อหาในหน้าเว็บ กิจกรรมของส่วนขยาย และข้อมูลระบบไปยัง Google Safe Browsing เพื่อตรวจสอบว่าอาจเป็นอันตรายหรือไม่ ซึ่งรวมถึงการสแกนการดาวน์โหลดที่น่าสงสัยอย่างละเอียด ข้อมูลที่ส่งไปยัง Google Safe Browsing จะใช้เพื่อการรักษาความปลอดภัยเท่านั้น หากคุณเลือกที่จะเปิด Safe Browsing พร้อมการปกป้องที่ดียิ่งขึ้นสำหรับบัญชีของคุณไว้ Safe Browsing พร้อมการปกป้องที่ดียิ่งขึ้นจะช่วยให้คุณปลอดภัยเมื่อลงชื่อเข้าใช้ รวมทั้งช่วยปรับปรุงความปลอดภัยใน Google Chrome และ Gmail อีกด้วย หากคุณลงชื่อเข้าใช้บัญชี Google การปกป้องของ Google Safe Browsing จะขยายการทำงานไปในบริการต่างๆ ของ Google โดยการบันทึกข้อมูลนี้ไว้ในบัญชี Google ตัวอย่างเช่น Google Safe Browsing สามารถเพิ่มการปกป้องใน Gmail หลังจากเกิดเหตุการณ์ด้านความปลอดภัย การปกป้องที่ดียิ่งขึ้น เพิ่มความปลอดภัยให้คุณและทุกคนที่ใช้อินเทอร์เน็ต เตือนคุณหากใช้รหัสผ่านที่ถูกละเมิดในการละเมิดข้อมูล ไม่ทำให้เบราว์เซอร์หรืออุปกรณ์ของคุณทำงานช้าลงอย่างเห็นได้ชัด การปกป้องแบบมาตรฐาน เมื่อคุณใช้ Chrome การปกป้องแบบมาตรฐานจะเปิดอยู่โดยค่าเริ่มต้น และคุณจะได้รับคำเตือนเกี่ยวกับเว็บไซต์ การดาวน์โหลด และส่วนขยายที่มีการระบุว่าเป็นอันตราย Chrome จะซ่อนที่อยู่ IP ของคุณเมื่อเข้าชมเว็บไซต์โดยนำข้อมูลบางส่วนของ URL ที่คุณเข้าชม มาปรับให้ยากต่อการอ่าน (Obfuscate) เพื่อส่งผ่านเซิร์ฟเวอร์ส่วนตัวก่อนส่งต่อไปยัง Google ทั้ง Google และบุคคลที่สามที่ดูแลเซิร์ฟเวอร์ความเป็นส่วนตัวจะไม่เห็น URL ที่คุณเข้าชมและที่อยู่ IP ของคุณ Google จะตรวจหาส่วนของ URL ซึ่งปรับให้ยากต่อการอ่าน (Obfuscate) ในรายการของ Google Safe Browsing และเตือนคุณหากเว็บไซต์ดังกล่าวอยู่ในรายการ การปกป้องแบบมาตรฐานจะส่ง URL แบบเต็มและเนื้อหาส่วนเล็กๆ ในหน้าเว็บไปยัง Google เฉพาะเมื่อเว็บไซต์ทำสิ่งที่น่าสงสัยเปลี่ยนระดับการปกป้องของ Google Safe Browsingคุณยังตรวจสอบและจัดการการตั้งค่าความปลอดภัยขั้นสูงได้ เพื่อรับประสบการณ์การท่องเว็บที่เป็นส่วนตัวและปลอดภัยมากขึ้น ดูวิธีจัดการการตั้งค่าความปลอดภัยของ Chrome เพิ่มเติมแหล่งข้อมูลที่เกี่ยวข้อง จัดการคำเตือนเกี่ยวกับเว็บไซต์ที่ไม่ปลอดภัย วิธีที่ Google Safe Browsing ใน Chrome ช่วยรักษาข้อมูลการท่องเว็บของคุณให้เป็นส่วนตัว Google Chrome บล็อกการดาวน์โหลดบางรายการ ข้อมูลนี้มีประโยชน์ไหมเราจะปรับปรุงได้อย่างไรGoogle Safe Browsing API - Antimalware
SeekBar RatingBar 57. Android Toggle Button, Switch 58. Android Countdown Timer 59. Android ExpandableListView 60. Android Date Time Picker 61. Android Radio Button 62. Android Floating Widget 63. Android Checkbox 64. Android CardView RecyclerView 65. Android RecyclerView with Dividers 66. Android ViewPager 67. Android Drag Drop 68. Android Floating Action Button 69. Android SnackBar 70. Android Swipe Refresh 71. Android Shared Element Transition Animation 72. Android ConstraintLayout 73. Android ConstraintLayout Example 74. Android TextInputLayout 75. Android Percent Layout 76. Android Google Maps 77. Android Google Maps Example Tutorial 78. Google Static Maps 79. Android Google Maps Current Location 80. Android Google Map Route Drawing 81. Google Places API Welcome to Retrofit Android Example Tutorial. Today we’ll use the Retrofit library developed by Square to handle REST API calls in our android application. Table of Contents [ hide ] 1 Retrofit Android 2 OkHttp Interceptors 3 Setting Up the Retrofit Interface 4 Retrofit Android Example Project Structure Retrofit Android Retrofit is type-safe REST client for Android and Java which aims to make it easier to consume RESTful web services. Geolocation based social networking application which provides a smooth experience to the users on their route or through traffic. Integrated Google map API and its functions and also implemented connection using Java Socket Library along with password encryption and email verification at backend. This is only the Android App and not the Backend Code CMD2ACL (C-SPARQL Map Diagram to Android Context Library) is an Acceleo based project that helps the implementation stage of an Android based Context-Aware System (C-AS) using aContextLib ( Java GNU General Public License v3.0 (May 2013) Project to learn Arduino and Amarino, the Bluetooth library interface between Android and Arduino. It consists in a rotating multicolor LED lamp with a star map lampshade. This Android application controls the lights and the stepper motor. An app suggesting and directing the user to places of interest near his location. Developed for mobile and tablet on Android Studio. Some of technologies, tools and libraries in use: Fragments, SQLite, RecyclerView, Google Maps API, Services. Android client that enables package browsing and extracts. An introduction to Google Safe Browsing API What is Google Safe Browsing API? Google Safe Browsing API is a public API offered by Google that helps developers to protect their Invalid Request in Google Safe-Browsing Lookup API. 2. Google SafeBrowsing Lookup API - PHP. 2. File not found - Google Safe Browsing Lookup API. 1. cURL to get response from Google Safe Browsing Lookup. 1. google safe browsing lookup api code for java. 2. Google safe browsing returning 400 bad request. 1.Comments
Memulai Tetap teratur dengan koleksi Simpan dan kategorikan konten berdasarkan preferensi Anda. Penyiapan umum Jika menggunakan Lookup API atau Update API, Anda memerlukan Akun Google, proyek Google Developer Console, dan kunci API. Anda juga perlu mengaktifkan Safe Browsing API untuk digunakan dengan project Anda. Jika Anda memerlukan bantuan tambahan terkait langkah-langkah di bawah, lihat Pusat Bantuan Konsol API Google. 1. Dapatkan akun Anda memerlukan Akun Google untuk membuat project. Jika Anda belummemiliki akun, daftar di Membuat Akun Google. 2. Membuat project Anda memerlukan project Google Developer Console untuk membuat kunci API. Jika Anda tidak sudah memiliki proyek, lihat Membuat, menonaktifkan, dan memulihkan project. 3. Menyiapkan kunci API Anda memerlukan kunci API untuk mengakses API Safe Browsing. Kunci API mengotentikasi Anda sebagai API dan memungkinkan Anda berinteraksi dengan API. Anda meneruskan kunci ini sebagai parameter URL di permintaan HTTP Anda ke server Safe Browsing. Misalnya, ganti kunci API Anda dengan API_KEY ditampilkan di sini: Untuk menyiapkan kunci API, lihat Menyiapkan kunci API. Kunci API baru Anda akan muncul di tabel—salin dan tempel kunci ini sesuai kebutuhan. 4. Mengaktifkan API Terakhir, Anda perlu mengaktifkan Safe Browsing API untuk digunakan dengan project Anda. Untuk mempelajari cara melakukannya, lihat Mengaktifkan dan menonaktifkan API. API yang akan diaktifkan disebut sebagai "Safe Browsing API". Penyiapan database Jika menggunakan Update API, Anda juga perlu menyiapkan database lokal. Safe Browsing menyediakan paket Go yang dapat Anda gunakan untuk memulai. Untuk informasi lebih lanjut, lihat bagian Penyiapan {i>DatabaseDatabase Lokal. Menggunakan API Sebelum memulai, baca Persyaratan Layanan dan Panduan Harga. Tinjau juga dan pastikan Anda memahami Batas Penggunaan untuk API Safe Browsing. Untuk mulai menggunakan API Safe Browsing, lihat panduan ini: API Pencarian (v4) Mengupdate API (v4)
2025-04-04ภาพรวม Lookup API ทำให้แอปพลิเคชันไคลเอ็นต์สามารถส่งคำขอไปยัง Google Safe Browsing ได้เพื่อตรวจสอบว่ามี URL อยู่ในรายการของ Google Safe Browsing หรือไม่ หากพบ URL ในรายการเพิ่มเติม ระบบจะแสดงข้อมูลการจับคู่ การตรวจสอบ URL หากต้องการตรวจสอบว่า URL อยู่ในรายการ Google Safe Browsing หรือไม่ ให้ส่งคำขอ HTTP POST ไปยัง threatMatches.find วิธีการ: คำขอ HTTP POST มี URL ได้สูงสุด 500 รายการ URL ต้องถูกต้อง (ดู RFC 2396) แต่ไม่จำเป็นต้องเป็นหน้า Canonical หรือเข้ารหัส การตอบกลับ HTTP POST จะแสดงผล URL ที่ตรงกันพร้อมกับระยะเวลาของแคช ตัวอย่าง: ThreatMatches.findคำขอ HTTP POST ในตัวอย่างต่อไปนี้ มีการส่งรายการ Google Safe Browsing 2 รายการและ URL 3 รายการไปยังเซิร์ฟเวอร์ไปยัง เพื่อดูว่ามีการจับคู่ที่ตรงกันหรือไม่ ส่วนหัวของคำขอประกอบด้วย URL ของคำขอและประเภทเนื้อหา อย่าลืมแทนที่ คีย์ API สำหรับ API_KEY ใน URL POST HTTP/1.1 Content-Type: application/json เนื้อหาของคำขอเนื้อหาคำขอมีข้อมูลไคลเอ็นต์ (รหัสและเวอร์ชัน) และข้อมูลภัยคุกคาม(ชื่อรายการและ URL) ดูรายละเอียดเพิ่มเติมได้ที่threatMatches.find เนื้อหาคำขอและคำอธิบายที่เป็นไปตามตัวอย่างโค้ด { "client": { "clientId": "yourcompanyname", "clientVersion": "1.5.2" }, "threatInfo": { "threatTypes": ["MALWARE", "SOCIAL_ENGINEERING"], "platformTypes": ["WINDOWS"], "threatEntryTypes": ["URL"], "threatEntries": [ {"url": " {"url": " {"url": " ] } }ข้อมูลลูกค้า ช่อง clientID และ clientVersion ควรระบุการใช้งานของไคลเอ็นต์โดยไม่ซ้ำกัน ไม่ใช่ผู้ใช้รายบุคคล (ข้อมูลไคลเอ็นต์จะใช้สำหรับการบันทึกและการทำบัญชีฝั่งเซิร์ฟเวอร์ โดยคุณเลือกชื่อใดก็ได้สำหรับรหัสไคลเอ็นต์ แต่เราขอแนะนำให้คุณเลือกชื่อที่แสดงถึงตัวตนที่แท้จริงของเช่น ชื่อบริษัท แสดงเป็นคำเดียวโดยใช้ตัวพิมพ์เล็กทั้งหมด)รายการ Google Safe Browsingช่อง threatType, platformType และ threatEntryTypeจะถูกรวมเข้าด้วยกันเพื่อระบุ (ชื่อ) รายการ Safe Browsing ในตัวอย่างนี้ เราจะระบุรายการ 2 รายการดังนี้MALWARE/WINDOWS/URL และ SOCIAL_ENGINEERING/WINDOWS/URL ก่อนส่งคำขอ โปรดตรวจสอบว่าประเภทชุดค่าผสมที่คุณระบุถูกต้อง (ดูรายการ Google Safe Browsing)URL ภัยคุกคามในตัวอย่างนี้ อาร์เรย์ threatEntries มี URL 3 รายการ (urltocheck1.org, urltocheck2.org,และ urltocheck3.org) ที่จะนำไปตรวจสอบกับ Google Safe Browsing ทั้ง 2 รายการหมายเหตุ: Lookup API และเมธอด threatMatches ควรใช้ช่อง URL เสมอห้ามระบุช่อง hash (ดู ThreatEntry)การตอบกลับ HTTP POSTในตัวอย่างต่อไปนี้ การตอบกลับจะแสดงค่าที่ตรงกัน 2 จาก 3 URL ที่ระบุไว้ในส่วน พบคำขอใน 1 จาก 2 รายการของ Google Safe Browsing ที่ระบุไว้ในคำขอส่วนหัวการตอบกลับจะมีรหัสสถานะ HTTPและประเภทเนื้อหาHTTP/1.1 200 OKContent-Type: application/jsonเนื้อหาการตอบกลับเนื้อหาการตอบกลับมีข้อมูลการจับคู่ (ชื่อรายการและ URL ที่พบในรายการเหล่านั้น ข้อมูลเมตา (หากมี) และระยะเวลาของแคช) ดูรายละเอียดเพิ่มเติมได้ที่threatMatches.find เนื้อหาการตอบกลับและคำอธิบายที่เป็นไปตามตัวอย่างโค้ดหมายเหตุ: หากไม่มีรายการที่ตรงกัน (หมายถึงไม่มี URL ที่ระบุในคำขอจะอยู่ในรายการใดก็ได้ที่ระบุในคำขอ) การตอบกลับ HTTP POSTจะแสดงผลเป็นออบเจ็กต์ว่างในส่วนเนื้อหาของคำตอบ{ "matches": [{ "threatType": "MALWARE", "platformType": "WINDOWS", "threatEntryType": "URL", "threat": {"url": " "threatEntryMetadata": { "entries": [{ "key": "malware_threat_type", "value": "landing" }] }, "cacheDuration": "300.000s" }, { "threatType": "MALWARE", "platformType": "WINDOWS", "threatEntryType": "URL", "threat": {"url": " "threatEntryMetadata": { "entries": [{ "key": "malware_threat_type", "value": "landing" }] }, "cacheDuration": "300.000s" }]}ตรงกับออบเจ็กต์ matches แสดงชื่อรายการ Google Safe Browsing และ URL หากนั่นคือรายการที่ตรงกัน ในตัวอย่างนี้ พบ URL สองแห่ง (urltocheck1.org และ urltocheck2.org) ที่หนึ่งในรายการ Google Safe Browsing (มัลแวร์/WINDOWS/URL) เพื่อแสดงข้อมูลที่ตรงกัน URL ที่ 3ไม่พบ (urltocheck3.org) ในทั้ง 2 รายการ จึงไม่มีข้อมูลแสดงผลสำหรับ URL นี้ ข้อมูลเมตาฟิลด์ threatEntryMetadata จะระบุหรือไม่ก็ได้ และให้ข้อมูลเพิ่มเติมเกี่ยวกับการจับคู่ภัยคุกคาม ปัจจุบันข้อมูลเมตาใช้ได้กับรายการ Google Safe Browsing มัลแวร์/WINDOWS/URL(ดูข้อมูลเมตา)ระยะเวลาของแคชช่อง cacheDuration ระบุระยะเวลาที่ URL ต้องถือว่าไม่ปลอดภัย(ดูการแคช)
2025-04-01James Gardnerunread,Oct 29, 2017, 5:14:22 PM10/29/17to Google Safe Browsing APIHow can I get my website to appear on I search for my website I get this message -Current statusNo available dataDoes Google automatically add a website over time or you can add it manually? I've added my website to Google WebMaster Tools but I don't see an option to submit the site to safe browsing? Any idea how to get this working?I've looked at the guides here - not sure if I've implemented it correctly its all a bit too technical!Using second post example PHP found on this website I believe the output I get is correct -I get the following output -HTTP/1.1 200 OKContent-Type: application/json; charset=UTF-8Date: Mon, 30 Oct 2017 00:04:30 GMTServer: ESFCache-Control: privateX-XSS-Protection: 1; mode=blockX-Frame-Options: SAMEORIGINX-Content-Type-Options: nosniffAlt-Svc: quic=":443"; ma=2592000; v="41,39,38,37,35"Accept-Ranges: noneVary: Accept-EncodingTransfer-Encoding: chunked{}Thanks for your help Ben Sandersunread,Nov 1, 2017, 2:45:14 PM11/1/17to Google Safe Browsing APIIt is automatic. For the purposes of the Safe Browsing API, we return an empty response if the given site does not match any blacklists. So in that case, knowing the site to be safe or not knowing about the site at all have the same response.The transparency report is a bit smarter and makes some determination between "no data" and "probably safe". So no-data means we just haven't scanned your site yet. If your site becomes popular, it will be scanned more frequently.
2025-04-24