Hostloc 新帖图文推送
1.81K subscribers
59.5K photos
392K links
本频道基本功能:爬取国内外有名的主机论坛Hostloc新帖,为订阅者提供一手图文资讯!

Hostloc: https://www.hostloc.com

侵删,联系 @CodyD
Download Telegram
标题求一个好用的海外CDN
作者Rbui
原帖https://hostloc.com/thread-964955-1-1.html

摘要:CF感觉延迟有点高了,还有没有比较好用的海外CDN? 价格越低越好甚至免费都行的那种。
标题rarbg不会被dmca吗
作者山本大意失仙人
原帖https://hostloc.com/thread-964957-1-1.html

摘要:怎么还用的cf
标题FJ移动能打开LOC两天,又打不开了
作者t9913085
原帖https://hostloc.com/thread-964958-1-1.html

摘要:。。
标题有没有好的下载器啊
作者求道
原帖https://hostloc.com/thread-964960-1-1.html

摘要:Windows下的开源下载器有没有好用的啊?

aria2 太垃了
axel linux下挺好用但windows下用起来有bug

求个开源支持多线程的下载器真不想用IDM
标题loc为什么不直接套cf
作者山本大意失仙人
原帖https://hostloc.com/thread-964959-1-1.html
标题LIUNX 的面板除了宝塔之外就没别的选择了吗?
作者乌溜溜的黑眼猪
原帖https://hostloc.com/thread-964961-1-1.html

摘要:总感觉宝塔就跟360一样,用了搞得服务器卡卡的

不用的时候自己用代码安装服务端速度要快些

有没有差不多的替代品?
标题sys-2-sat制作全局软raid10
作者infplus
原帖https://hostloc.com/thread-964963-1-1.html

摘要:不需要IPMI 制作过程数据可能会丢失。 查看分区:cat /proc/mdstat复制代码
可以看到 root@debian:~# cat /proc/mdstat Personalities : [raid1] [linear] [multipath] [raid0] [raid6] [raid5] [raid4] [raid10] md2 : active raid1 sda2[0] sdc2[1] sdd2[3] sdb2[2]       511868928 blocks super 1.2 [4/4] [UUUU]       bitmap: 2/4 pages [8KB], 65536KB chunk复制代码
制作raid10需要将raid1转换为raid0 再转换为raid10 raid1转换为raid0:mdadm --grow /dev/md2 --level=0 --backup-file=/home/backup-md0复制代码
查看是否转换完成:cat /proc/mdstat复制代码查看挂载点:mdadm --misc --detail /dev/md1复制代码可以看到:/dev/md2:         Version : 1.2   Creation Time : Sat Jan 29 17:33:29 2022      Raid Level : raid0      Array Size : 249664 (243.85 MiB 255.66 MB)    Raid Devices : 1   Total Devices : 1     Persistence : Superblock is persistent     Update Time : Sun Jan 30 03:19:46 2022           State : clean Active Devices : 1 Working Devices : 1 Failed Devices : 0   Spare Devices : 0      Chunk Size : 64K            Name : jupiter:1  (local to host jupiter)            UUID : b95b33c4:26ad8f39:950e870c:03a3e87c          Events : 68     Number   Major   Minor   RaidDevice State        1       8       34        0      active sync   /dev/sdd2复制代码
可以看到只有一个挂载点/dev/sdd2 需要将其他的挂载点加入阵列 mdadm --grow /dev/md2 --level=10 --backup-file=/home/backup-md0 --raid-devices=4 --add /dev/sda2 /dev/sdb2 /dev/sdc2复制代码
查询阵列 cat /proc/mdstat复制代码Personalities : [raid1] [linear] [multipath] [raid0] [raid6] [raid5] [raid4] [raid10] md2 : active raid10 sdd2[5] sdc2[4](S) sda2[3](S) sdb2[2]       511868928 blocks super 1.2 2 near-copies [2/1] [U_]       [>....................]  recovery =  0.5% (2835392/511868928) finish=50.8min speed=166787K/sec unused devices: 复制代码
耐心等待
制作完成后会有两个备用硬盘,也需要加入阵列中,否则这个只是换了一个名称的raid1。 mdadm --grow /dev/md2 --raid-devices=4复制代码Personalities : [raid1] [linear] [multipath] [raid0] [raid6] [raid5] [raid4] [raid10] md2 : active raid10 sdc2[4] sdb2[3] sda2[2] sdd2[1]       3889583104 blocks super 1.2 64K chunks 2 near-copies [4/4] [UUUU]       [>....................]  reshape =  1.1% (45550720/3889583104) finish=430.7min speed=148740K/sec复制代码
等待完成即可。
标题剩余价值出个RS 2000 G9 SE BF21
作者treesky
原帖https://hostloc.com/thread-964964-1-1.html

摘要:如题,剩余价值250出,PUSH出自备免税号
标题人人销卡安全吗?求推荐类似大站
作者leftgg
原帖https://hostloc.com/thread-964969-1-1.html

摘要:想要曲线提取paypal里面的美元
标题莫奈卡以后免年费吗?
作者你们男生好厉害
原帖https://hostloc.com/thread-964967-1-1.html

摘要:昨天看消息说,中行二月份起取消个人借记卡的年费了,不知道这包不包含莫奈卡
标题这两天移动网明显感觉变快了
作者toot
原帖https://hostloc.com/thread-964966-1-1.html

摘要:应该是春节出口调大了。
标题请教一个网站反代的问题
作者2722486
原帖https://hostloc.com/thread-964970-1-1.html

摘要:网站放在荷兰小鸡上,用香港轻量小鸡1G1H30M反代荷兰小鸡2H2G
每次打开网站都很慢偶尔504,但是打开两个小鸡的宝塔面板负载都正常的呀
两个小鸡之间互ping也才200ms多的延迟,没有丢包现象
请教大佬们,那为什么打开网站会很慢?
标题有没有一起折腾freefr的啊
作者beiniceing
原帖https://hostloc.com/thread-964971-1-1.html

摘要:目前测试zblog、wordpress均正常
卡在cloudflaze的反代了
标题在腾讯的域名到期了,有没有最优续费方案
作者l516q
原帖https://hostloc.com/thread-964972-1-1.html

摘要:花钱也行
标题有没有搞良心云认证的
作者Backkom
原帖https://hostloc.com/thread-964973-1-1.html

摘要:有没有良心云个人的?
标题过年了 感觉国际出口没那么拥堵了
作者xshell
原帖https://hostloc.com/thread-964974-1-1.html

摘要:是我的错觉吗?跑不起来的T子都跑起来了
标题55出爱奇艺年费会员【换绑】
作者巴黎圣日耳曼
原帖https://hostloc.com/thread-964975-1-1.html

摘要:本帖最后由 巴黎圣日耳曼 于 2022-1-30 12:12 编辑
tg找我就行,换绑哈,不是直冲
标题收buyvm的2刀。有老哥没
作者66y
原帖https://hostloc.com/thread-964976-1-1.html

摘要:收buyvm的2刀。有老哥没。
标题为啥我注册了hz账号也认证成功却没收到20刀余额呢?
作者crabbit
原帖https://hostloc.com/thread-964978-1-1.html

摘要:rt
标题【小白求助】cloudflaze反代替换文本
作者beiniceing
原帖https://hostloc.com/thread-964977-1-1.html

摘要:这是我所填写的内容 // 代理网站.
const upstream = 'remy.levayer.free.fr'

// 代理网站的目录.
const upstream_path = '/zblog/'

// 手机用户代理网站.
const upstream_mobile = 'remy.levayer.free.fr'

// 屏蔽国家和地区.
const blocked_region = ['']

// 屏蔽 IP 地址.
const blocked_ip_address = ['0.0.0.0', '127.0.0.1']

// 源站是否开启 HTTPS.
const https = false

// 文本替换.
const replace_dict = {
    '$upstream': '$custom_domain',
    '//remy.levayer.free.fr': ''
}

addEventListener('fetch', event => {
    event.respondWith(fetchAndApply(event.request));
})

async function fetchAndApply(request) {

    const region = request.headers.get('cf-ipcountry').toUpperCase();
    const ip_address = request.headers.get('cf-connecting-ip');
    const user_agent = request.headers.get('user-agent');

    let response = null;
    let url = new URL(request.url);
    let url_hostname = url.hostname;

    if (https == true) {
        url.protocol = 'https:';
    } else {
        url.protocol = 'http:';
    }

    if (await device_status(user_agent)) {
        var upstream_domain = upstream;
    } else {
        var upstream_domain = upstream_mobile;
    }

    url.host = upstream_domain;
    if (url.pathname == '/') {
        url.pathname = upstream_path;
    } else {
        url.pathname = upstream_path + url.pathname;
    }

    if (blocked_region.includes(region)) {
        response = new Response('Access denied: WorkersProxy is not available in your region    yet.', {
            status: 403
        });
    } else if (blocked_ip_address.includes(ip_address)) {
        response = new Response('Access denied: Your IP address is blocked by WorkersProxy.',   {
            status: 403
        });
    } else {
        let method = request.method;
        let request_headers = request.headers;
        let new_request_headers = new Headers(request_headers);

        new_request_headers.set('Host', url.hostname);
        new_request_headers.set('Referer', url.hostname);

        let original_response = await fetch(url.href, {
            method: method,
            headers: new_request_headers
        })

        let original_response_clone = original_response.clone();
        let original_text = null;
        let response_headers = original_response.headers;
        let new_response_headers = new Headers(response_headers);
        let status = original_response.status;

        new_response_headers.set('access-control-allow-origin', '*');
        new_response_headers.set('access-control-allow-credentials', true);
        new_response_headers.delete('content-security-policy');
        new_response_headers.delete('content-security-policy-report-only');
        new_response_headers.delete('clear-site-data');

        const content_type = new_response_headers.get('content-type');
        if (content_type.includes('text/html') && content_type.includes('UTF-8')) {
            original_text = await replace_response_text(original_response_clone,    upstream_domain, url_hostname);
        } else {
            original_text = original_response_clone.body
        }

        response = new Response(original_text, {
            status,
            headers: new_response_headers
        })
    }
    return response;
}

async function replace_response_text(response, upstream_domain, host_name) {
    let text = await response.text()

    var i, j;
    for (i in replace_dict) {
        j = replace_dict
        if (i == '$upstream') {
            i = upstream_domain
        } else if (i == '$custom_domain') {
            i = host_name
        }

        if (j == '$upstream') {
            j = upstream_domain
        } else if (j == '$custom_domain') {
            j = host_name
        }

        let re = new RegExp(i, 'g')
        text = text.replace(re, j);
    }
    return text;
}

async function device_status(user_agent_info) {
...
标题有没有pt自动下载free种,自动删种 的教程
作者花样
原帖https://hostloc.com/thread-964979-1-1.html

摘要:看大佬一个月十几,几十T的上传,很是羡慕,
搞了好几年了,我也才几十T的上传,
都是纯手动,隔一阵子就上去看看有没有免费的大包,别的都不敢下,

求个全自动的教程,自动下载free种子,自动到期删种的,
自己搜索不到合适的