logo NodeSeekbeta

用CF和BackBlaze零成本自建抗刷抗DDoS图床/文件床,年度最强白嫖攻略

  • @tof #60 我和你的情况一样是404,rewrite里第一行少写了https:// ,这个是什么意思,在哪里配置?

  • 也挺多人404的是不是还有什么地方配置没说

  • @dsaf234 #71 就完全是字面意思。rewrite第一行要写https://

  • 好帖,mark

  • 完全按教程做,404

  • 这种技术贴,必须顶

  • @zengshouru #75 404有的时候是缓存的问题,有的时候是cloudflare的变量没有连接上。教程里有写注释掉缓存,重新部署,看看行不行。等都没问题了再把缓存那几行再加回来

  • 可以加个简单的密码验证,防君子不防大佬 xhj014
    ①html文件172-176行替换为以下代码:

            /* 新增样式:密码输入框 */
            #passwordModal {
                position: fixed;
                top: 0;
                left: 0;
                width: 100%;
                height: 100%;
                background-color: rgba(0, 0, 0, 0.5);
                display: flex;
                justify-content: center;
                align-items: center;
                z-index: 9999;
            }
            
            #passwordInput {
                padding: 10px;
                border: 1px solid #ddd;
                border-radius: 4px;
                font-size: 16px;
                margin-right: 10px;
            }
            
            #passwordSubmit {
                background-color: #3498db;
                color: white;
                border: none;
                padding: 10px 15px;
                border-radius: 4px;
                cursor: pointer;
                font-size: 16px;
                transition: background-color 0.3s;
            }
            
            #passwordSubmit:hover {
                background-color: #2980b9;
            }
        </style>
    </head>
    <body>
        <!-- 新增密码输入框模态框 -->
        <div id="passwordModal">
            <input type="password" id="passwordInput" placeholder="Enter password">
            <button id="passwordSubmit">Submit</button>
        </div>
        <div class="container" style="display: none;">
    

    ②198行后增加以下代码:

                // 新增密码验证部分
                const passwordModal = document.getElementById('passwordModal');
                const passwordInput = document.getElementById('passwordInput');
                const passwordSubmit = document.getElementById('passwordSubmit');
                const container = document.querySelector('.container');
                const correctPassword = 'your_password'; // 这里设置正确的密码
                const redirectUrl = 'https://example.com'; // 这里设置密码错误时跳转的网址
    
                passwordSubmit.addEventListener('click', () => {
                    const enteredPassword = passwordInput.value;
                    if (enteredPassword === correctPassword) {
                        passwordModal.style.display = 'none';
                        container.style.display = 'block';
                    } else {
                        // 密码错误,跳转至指定网页
                        window.location.href = redirectUrl;
                    }
                });
    
  • @RelexDanger #79 44楼有debug步骤

    @云上拾荒者 #44 发布于27/02/2025, 21:35:41
    @皮皮瑾 #42 看了一下你的worker注册成功了并且在正常运行,问题出在跟B2的连接上。

    image

    image

    开启log记录,然后打开上传页面,看到log里面错误是什么。如果可以的话把log私信给我,我帮你看看

你好啊,陌生人!

我的朋友,看起来你是新来的,如果想参与到讨论中,点击下面的按钮!

📈用户数目📈

目前论坛共有72280位seeker

🎉欢迎新用户🎉