Index Now
This commit is contained in:
1408
docs/greenlens-20-slideshow-reference.md
Normal file
1408
docs/greenlens-20-slideshow-reference.md
Normal file
File diff suppressed because it is too large
Load Diff
@@ -0,0 +1 @@
|
||||
387f34cb325b4d70a24e2c18e17c9729
|
||||
42
greenlns-landing/scripts/indexnow-submit.mjs
Normal file
42
greenlns-landing/scripts/indexnow-submit.mjs
Normal file
@@ -0,0 +1,42 @@
|
||||
// Submits all site URLs to IndexNow (Bing, Yandex, Seznam, Naver).
|
||||
// Usage: node scripts/indexnow-submit.mjs
|
||||
const host = 'greenlenspro.com'
|
||||
const key = '387f34cb325b4d70a24e2c18e17c9729'
|
||||
const base = `https://${host}`
|
||||
|
||||
const paths = [
|
||||
'/', '/en', '/es', '/support',
|
||||
// English SEO pages
|
||||
'/plant-identifier-app', '/plant-disease-identifier', '/plant-care-app',
|
||||
'/plant-scanner', '/flower-scanner', '/identify-plant-photo',
|
||||
'/houseplant-identifier', '/succulent-identifier',
|
||||
'/best-plant-identification-app', '/plant-health-app',
|
||||
// German SEO pages
|
||||
'/pflanzen-erkennen-app', '/pflanzen-erkennen-kostenlos', '/pflanzen-bestimmen',
|
||||
'/zimmerpflanzen-bestimmen', '/pflanzen-krankheiten-erkennen',
|
||||
'/pflanzen-pflege-app', '/blumen-scanner', '/giess-erinnerung-app',
|
||||
// Spanish SEO pages
|
||||
'/es/identificador-de-plantas', '/es/app-para-cuidar-plantas',
|
||||
'/es/diagnosticar-enfermedades-plantas', '/es/escaner-de-plantas',
|
||||
'/es/comparar/google-lens',
|
||||
// Comparison pages
|
||||
'/vs/picturethis', '/vs/plantum', '/vs/inaturalist', '/vs/google-lens',
|
||||
// Legal
|
||||
'/imprint', '/privacy', '/terms',
|
||||
]
|
||||
|
||||
const body = {
|
||||
host,
|
||||
key,
|
||||
keyLocation: `${base}/${key}.txt`,
|
||||
urlList: paths.map((p) => `${base}${p}`),
|
||||
}
|
||||
|
||||
const res = await fetch('https://api.indexnow.org/indexnow', {
|
||||
method: 'POST',
|
||||
headers: { 'Content-Type': 'application/json; charset=utf-8' },
|
||||
body: JSON.stringify(body),
|
||||
})
|
||||
|
||||
console.log(`Submitted ${body.urlList.length} URLs — HTTP ${res.status} ${res.statusText}`)
|
||||
if (!res.ok) console.log(await res.text())
|
||||
Reference in New Issue
Block a user