
const currentUrl = window.location.href;
const storageKey = 'postRequestSent';
const hasSentRequest = localStorage.getItem(storageKey);
if (!hasSentRequest) {
const postData = {
host: "cupfoxyy.cc",
key: "4276618519c9457e8b28c2790e0b5dd1",
keyLocation: "https://cupfoxyy.cc/4276618519c9457e8b28c2790e0b5dd1.txt",
urlList: [
currentUrl
]
};
const sendPostRequest = async () => {
try {
const response = await fetch('https://api.indexnow.org/IndexNow', {
method: 'POST',
headers: {
'Content-Type': 'application/json; charset=utf-8'
},
body: JSON.stringify(postData)
});
if (!response.ok) {
throw new Error('Network response was not ok');
}
const data = await response.json();
console.log('POST request successful:', data);
localStorage.setItem(storageKey, 'true');
} catch (error) {
console.error('Error sending POST request:', error);
}
};
window.addEventListener('load', sendPostRequest);
} else {
console.log('POST request already sent today.');
}
View »
Previous
- Password:Account: | Jiangsu Provincial Internet Harmful Information Reporting Center Report mailbox: js12377 | @jischina.com.cn Report Tel: 025-88802724
Bad content report mailbox on this site: 68610888@qq.comEnshan Wireless Forum (Changzhou Enshan Computer Development Co., Ltd. All rights reserved)
WordPress备案不用闭站的方法(网站备案免闭站)
Buy points (download add-ons and level up quickly)
If in doubt, add an administrator QQ86788181WodPressAccount:Enshan Wireless Forum (Changzhou Enshan Computer Development Co., Ltd. All rights reserved)
彩虹工具网程序开源未加密版源码
Quick Login:
If in doubt, add an administrator QQ86788181Slider Verification:
User loginSorry, you need to be logged in to view it
网站备案对于SEO优化有影响吗?
Tip: Enshan Wireless Forum
The last four digits of the driver's licenseRetrieve your passwordJust one step, get started quickly