Tetap teratur dengan koleksi
Simpan dan kategorikan konten berdasarkan preferensi Anda.
Ringkasan Web Risk
Web Risk adalah produk keamanan perusahaan baru yang memungkinkan aplikasi klien Anda
memeriksa URL berdasarkan daftar resource web tidak aman yang terus diperbarui
oleh Google. Contoh resource web
yang tidak aman adalah situs manipulasi psikologis, seperti situs phishing dan penipuan, serta
situs yang menghosting malware atau software yang tidak diinginkan. Semua URL yang ditemukan dalam daftar ini dianggap tidak aman. Google berupaya memberikan informasi yang paling akurat dan terbaru
tentang resource web yang tidak aman. Namun, Google tidak dapat menjamin bahwa
informasinya komprehensif dan bebas error: beberapa situs berisiko mungkin tidak
diidentifikasi, dan beberapa situs aman mungkin salah diklasifikasikan.
Untuk menentukan apakah URL ada dalam daftar, klien
dapat menggunakan Lookup API atau Update API .
Lookup API
Lookup API memungkinkan aplikasi klien Anda mengirim URL ke
server Risiko Web untuk memeriksa statusnya. API ini sederhana dan mudah
digunakan, karena menghindari kompleksitas Update API.
Kelebihan
Pemeriksaan URL sederhana: Anda mengirim permintaan GET HTTP dengan URL sebenarnya,
dan server akan merespons dengan status URL (aman atau tidak aman).
Kekurangan
Privasi: URL tidak di-hash, sehingga server mengetahui URL mana yang Anda cari.
Waktu respons: Setiap permintaan pencarian diproses oleh server. Kami tidak
memberikan jaminan terkait waktu respons pencarian.
Jika Anda tidak terlalu khawatir dengan privasi URL yang dikueri, dan Anda dapat
mentoleransi latensi yang disebabkan oleh permintaan jaringan, pertimbangkan untuk menggunakan Lookup API
karena lebih mudah digunakan.
Update API
Update API memungkinkan aplikasi klien Anda mendownload dan menyimpan versi yang di-hash dari daftar tidak aman di database lokal, dan memeriksanya secara lokal. Hanya jika
kecocokan ditemukan di database lokal, klien perlu mengirim permintaan ke
server Web Risk untuk memverifikasi apakah URL tersebut disertakan dalam daftar
tidak aman. API ini lebih kompleks untuk diterapkan daripada Lookup API, tetapi memungkinkan penelusuran lokal
dalam sebagian besar kasus sehingga lebih cepat.
Kelebihan
Privasi: Anda jarang bertukar data dengan server (hanya setelah
awalan hash lokal cocok) dan menggunakan URL yang di-hash, sehingga server tidak pernah mengetahui
URL sebenarnya yang dikueri oleh klien.
Waktu respons: Anda mengelola database lokal yang berisi salinan daftar Web Risk; klien tidak perlu mengkueri server setiap kali ingin memeriksa URL.
Kekurangan
Penerapan: Anda perlu menyiapkan database lokal, lalu mendownload, dan
memperbarui secara berkala, salinan lokal daftar Risiko Web
(disimpan sebagai hash SHA256 dengan panjang variabel).
Pemeriksaan URL yang kompleks: Anda perlu mengetahui cara mengonversi URL menjadi kanonis, membuat
ekspresi akhiran/awalan, dan menghitung hash SHA256 untuk dibandingkan dengan
salinan lokal daftar Risiko Web dan
daftar Risiko Web yang disimpan di server.
Jika Anda khawatir dengan privasi URL yang dikueri atau latensi
yang disebabkan oleh permintaan jaringan, gunakan Update API.
[[["Mudah dipahami","easyToUnderstand","thumb-up"],["Memecahkan masalah saya","solvedMyProblem","thumb-up"],["Lainnya","otherUp","thumb-up"]],[["Sulit dipahami","hardToUnderstand","thumb-down"],["Informasi atau kode contoh salah","incorrectInformationOrSampleCode","thumb-down"],["Informasi/contoh yang saya butuhkan tidak ada","missingTheInformationSamplesINeed","thumb-down"],["Masalah terjemahan","translationIssue","thumb-down"],["Lainnya","otherDown","thumb-down"]],["Terakhir diperbarui pada 2025-08-17 UTC."],[],[],null,["# Overview of Web Risk\n====================\n\nWeb Risk is a new enterprise security product that lets your client\napplications check URLs against Google's\nconstantly updated lists of unsafe web resources. Examples of unsafe web\nresources are social engineering sites, like phishing and deceptive sites, and\nsites that host malware or unwanted software. Any URL found on this list is\nconsidered unsafe. Google works to provide the most accurate and up-to-date\ninformation about unsafe web resources. However, Google cannot guarantee that\nits information is comprehensive and error-free: some risky sites may not be\nidentified, and some safe sites may be classified in error.\n\nTo determine if a URL is on any of the lists, clients\ncan use either the Lookup API or the Update API .\n| **Note:** The information returned by the Web Risk must not be redistributed.\n\nLookup API\n----------\n\nThe Lookup API lets your client applications send URLs to the\nWeb Risk server to check their status. This API is simple and easy\nto use, because it avoids the complexities of the Update API.\n\n### Advantages\n\n- **Simple URL checks**: You send an HTTP GET request with the actual URL, and the server responds with the state of the URL (safe or unsafe).\n\n### Drawbacks\n\n- **Privacy**: URLs aren't hashed, so the server knows which URLs you look up.\n- **Response time**: Every lookup request is processed by the server. We don't provide guarantees on lookup response time.\n\nIf you aren't too concerned about the privacy of the queried URLs, and you can\ntolerate the latency induced by a network request, consider using the Lookup API\nbecause it's easier to use.\n\nUpdate API\n----------\n\nThe Update API lets your client applications download and store hashed versions of the\nunsafe lists in a local database, and check them locally. Only if a\nmatch is found in the local database does the client need to send a request to\nthe Web Risk servers to verify whether the URL is included on the unsafe\nlists. This API is more complex to implement than the Lookup API, but enables local\nlookups in most cases so it's faster.\n\n### Advantages\n\n- **Privacy**: You exchange data with the server infrequently (only after a local hash prefix match) and using hashed URLs, so the server never knows the actual URLs queried by the clients.\n- **Response time**: You maintain a local database that contains copies of the Web Risk lists; they do not need to query the server every time they want to check a URL.\n\n### Drawbacks\n\n- **Implementation**: You need to set up a local database and then download, and periodically update, the local copies of the Web Risk lists (stored as variable-length SHA256 hashes).\n- **Complex URL checks**: You need to know how to canonicalize URLs, create suffix/prefix expressions, and compute SHA256 hashes for comparison with the local copies of the Web Risk lists and the Web Risk lists stored on the server.\n\nIf you are concerned about the privacy of the queried URLs or the latency\ninduced by a network request, use the Update API.\n\nWhat's next\n-----------\n\n- Learn how to [set up Web Risk](/web-risk/docs/quickstart)."]]