网站首页 >> 源码 >> 正文
标题

百度收录批量检查器,支持一键检测,TXT文本导入

逍遥   01月02日 13:19   87℃   0
内容

废话不多说,直接上图

百度收录批量检查器,支持一键检测,TXT文本导入,image.png,百度收录批量检查器,百度收录,第1张

经过检测,状态精准,有需要可以试试

使用教程

  1. 安装 Node.js(官网https://nodejs.org/ 下载 LTS 版本);

  2. 创建proxy.js文件,粘贴以下代码:

// 精准版本地代理(无强制兜底,返回真实结果)
const express = require('express');
const cors = require('cors');
const axios = require('axios');
const app = express();

// 允许所有跨域请求
app.use(cors({
  origin: '*',
  methods: ['GET', 'POST'],
  allowedHeaders: ['*']
}));
app.use(express.json());
app.use(express.urlencoded({ extended: true }));

// 核心代理接口(返回真实百度响应)
app.get('/proxy', async (req, res) => {
  try {
    const targetUrl = req.query.url;
    if (!targetUrl) {
      return res.status(400).send('缺少URL参数');
    }

    console.log('代理请求:', decodeURIComponent(targetUrl));
    
    const response = await axios.get(decodeURIComponent(targetUrl), {
      headers: {
        'User-Agent': 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/129.0.0.0 Safari/537.36',
        'Accept': 'text/html,application/xhtml+xml,application/xml;q=0.9,image/avif,image/webp,*/*;q=0.8',
        'Accept-Language': 'zh-CN,zh;q=0.9,en;q=0.8',
        'Referer': 'https://www.baidu.com/',
        'Cache-Control': 'no-cache',
        'Pragma': 'no-cache'
      },
      timeout: 30000,
      followRedirects: true,
      decompress: true,
      maxRedirects: 5
    });

    // 返回真实的百度响应(无修改)
    res.setHeader('Content-Type', 'text/html; charset=utf-8');
    res.send(response.data);
  } catch (error) {
    console.error('代理失败:', error.message);
    // 返回真实错误,不兜底为已收录
    res.status(500).send(`<html>代理请求失败:${error.message}</html>`);
  }
});

// 启动代理(自动检测可用端口)
async function startProxy() {
  let port = 8080;
  while (port <= 8090) {
    try {
      app.listen(port, () => {
        console.log(`✅ 精准版代理已启动,地址:http://localhost:${port}`);
        console.log(`📌 检测器需配置:http://localhost:${port}/proxy?url=`);
      });
      break;
    } catch (e) {
      port++;
    }
  }
  if (port > 8090) {
    console.error('❌ 8080-8090端口均被占用,请关闭占用程序后重试');
  }
}

startProxy();
  1. 打开终端,执行:

npm install express cors axios
node proxy.js
  1. 看到以下提示,说明代理启动成功:

✅ 本地代理已启动,地址:http://localhost:8080
📌 请勿关闭此窗口,关闭则代理失效


支付1币,才能查看本内容!立即支付查询订单
你可能想看:
«    2026年2月    »
1
2345678
9101112131415
16171819202122
232425262728
最近发表
相关推荐
  • 桔子SEO - 外链查询_批量查网站反链_老域名_网站建站历史记录_关键字检测_站长工具网
  • 懒人网址导航-网站收录-自动收录网-网址收录-自动秒收录
  • 888收录网_SEO外链大全_免费提交网站_快速收录_免费收录平台-888收录网
  • 聚仁榜精选导航 - 免费收录有价值的网站、外链推广、软文发布、网站提交、百度快速收录平台有价值的网站
  • 时空穿梭首页模板,支持所有网站,这是你想要的吗
  • 网站IP统计代码页面,支持所有网站
  • 车牌号归属地查询开源版源码,支持全省份查询,后期可能更新
  • 全能在线工具导航HTML跳转单页,支持任何工具,后台可添加
  • 用户中心登录注册找回密码页面,支持第三方登录完整代码
  • 金山词霸-文本、图片、文档在线翻译词典
  • 飞哥收录网_分类目录网_免费网站目录_网站收录_网址提交_免费收录网站
  • DRT收录网_分类目录网_免费网站目录_网站收录_网址提交_免费收录网站
  • 多溴二苯醚检测气质联用-非甲烷总烃检测气相色谱-上海质谱谱峰科技有限公司(舜宇恒平仪器)
  • 厦门新房除甲醛_甲醛检测_办公室除甲醛_CMA甲醛检测报告_厦门荃净无忧环保科技有限公司
  • 网站速度检测支持多官网进入适应所有设备