找回密码
 立即注册
搜索
热搜: 活动 交友 discuz
查看: 144|回复: 13

玩了一个骚的,用FREE.FR免费主机做图床和小文件存储服务。

[复制链接]

52

主题

879

回帖

2032

积分

金牌会员

积分
2032
发表于 2019-1-24 15:54:21 | 显示全部楼层 |阅读模式
本帖最后由 feixiang 于 2019-2-19 10:32 编辑

1、准备一个FREE.FR的空间,然后找好法国代理,FTP上传,这个源码。https://gitlab.com/mojo42/Jirafeau

2、上传完毕后,记得给几个关键目录权限,然后开始安装,安装的时候要注意几个坑。

    (1)、新建一个.htaccess文件,然后复制
[ol]
  • [I]
  • php56 1
  • [/I]
  • ErrorDocument 404 /404.html[/ol]复制代码
        (2)、手动新建一个sessions文件夹在根目录,记得给写入权限。

    3、准备一个VPS小鸡鸡,做反代,我用的lighttpd,反代只能是IP,所以我用了PHP单文件反代域名。

    4、套上CF,然后设置好缓存,起飞!

    php反代源码附件自己下,并提供一个lighttpd的配置文件,虚拟主机没试过行不行,如果可以的话,小鸡鸡都可以省了。

    下载地址:https://share.feixiang.eu.org/f.php?h=2-0IbtXgXzp4gmRTviJnMI              下面附件不是最新的

    注:
    1、上传文件用free.fr的域名,然后外链替换free.fr域名为反代域名即可。
    2、外链设置可以永久,需要修改lib里面的配置文件。
    3、FREE.FR最大支持2M,超过了好像上传不了,程序可以在配置文件设置最大2M即可。
    4、如果是博客程序,可以用插件来替换free.fr和反代域名,这样子以后换域名也比较方便,
         毕竟free.fr比一般的域名不容易挂掉。Typecho我用的是CompressHTML这个插件。



  • 回复

    使用道具 举报

    41

    主题

    221

    回帖

    581

    积分

    高级会员

    积分
    581
    发表于 2019-1-24 16:24:31 | 显示全部楼层
    想用图床,何必这么麻烦那
    这段代码,复制另存为 index.html
    本地打开,直接上传就行了


    [ol]
  •         
  •         
  •         四合一图床上传 - Cdn图床,百度图床,新浪图床,360图床,搜狗图床
  •         
  •         
  •         
  •         html,body {height: 100%;margin: 0;padding: 0;}body {font-family: 'lucida grande', 'lucida sans unicode', lucida, helvetica, 'Hiragino Sans GB', 'Microsoft YaHei', 'WenQuanYi Micro Hei', sans-serif;align-items: center;display: flex;}a{text-decoration:none;}#container {max-width: 400px;flex-basis: 100%;margin: 0 auto;background: #FFF;border-radius: 10px;box-shadow: 0 0 30px rgba(0, 0, 0, 0.3);-webkit-box-shadow: 0 0 30px rgba(0, 0, 0, 0.3);overflow: hidden;}#container #hero-img {width: 100%;height: 200px;background: #007bff;}#container #profile-img {width: 160px;height: 160px;margin: -80px auto 0 auto;}#container #profile-img img {width: 100%;background: #FFF;border-radius: 50%;}#container #content {text-align: center;width: 320px;margin: 0 auto;padding: 0 0 50px 0;}#container #content h1 {font-size: 29px;font-weight: 500;margin: 30px 0 0 0;}#container #content p {font-size: 18px;font-weight: 400;line-height: 1.4;color: #666;margin: 15px 0 40px 0;}#container #content a {color: #CCC;font-size: 14px;margin: 0 10px;transition: color .3s ease-in-out;-webkit-transition: color .3s ease-in-out;line-height: 40px;}#container #content a:hover {color: #007bff;}.btn{background: none repeat scroll 0 0 #1BA1E2; border: 0 none; border-radius: 2px; color: #FFFFFF !important; cursor: pointer; font-family: "Open Sans","Hiragino Sans GB","Microsoft YaHei","WenQuanYi Micro Hei",Arial,Verdana,Tahoma,sans-serif; font-size: 14px;  padding: 6px 10%;}.btn:hover,.yanshibtn:hover{background: none repeat scroll 0 0 #9B59B6; border: 0 none; border-radius: 2px; color: #FFFFFF!important; cursor: pointer; font-family: "Open Sans","Hiragino Sans GB","Microsoft YaHei","WenQuanYi Micro Hei",Arial,Verdana,Tahoma,sans-serif; font-size: 14px; padding: 8px 10%;}
  •         .imgType{display: none;}
  •         #images img{width: 100%}
  •         #imgurl input{width: 100%}
  •         #imgurl,#progress{display: none;}
  •         @-webkit-keyframes rotation{
  •                 from {-webkit-transform: rotate(0deg);}
  •                 to {-webkit-transform: rotate(360deg);}
  •         }
  •         .Rotation{
  •                 -webkit-transform: rotate(360deg);
  •                 animation: rotation 3s linear infinite;
  •                 -moz-animation: rotation 3s linear infinite;
  •                 -webkit-animation: rotation 3s linear infinite;
  •                 -o-animation: rotation 3s linear infinite;
  •         }
  •         .img{border-radius: 250px;}
  •         
  •                
  •                
  •                
  •                         
  •                
  •                
  •                         四合一图床上传
  •                         
  •                                 百度图床-新浪图床-搜狗图床-360图床
  •                         
  •                         
  •                         
  •                         
  •                                 百度图床新浪图床
  •                                 搜狗图床360 图床
  •                                 
  •                         
  •                         
  •                                 
  •                                 
  •                                         ImgUrl:
  •                                        
  •                                         HtmlUrl:
  •                                        
  •                                         Ubb:
  •                                        
  •                                         Markdown:
  •                                        
  •                                 
  •                         
  •                
  •         
  • [/ol]复制代码
  • 回复

    使用道具 举报

    12

    主题

    441

    回帖

    980

    积分

    高级会员

    积分
    980
    发表于 2019-1-24 15:56:51 | 显示全部楼层
    大佬关键没有FREE.FR的空间
    回复

    使用道具 举报

    52

    主题

    879

    回帖

    2032

    积分

    金牌会员

    积分
    2032
     楼主| 发表于 2019-1-24 15:57:58 | 显示全部楼层

    龙啸舞 发表于 2019-1-24 15:56

    大佬关键没有FREE.FR的空间

    这就尴尬了,你也可以用那种免费很久的主机提供商,然后一样的操作。
    回复

    使用道具 举报

    557

    主题

    2292

    回帖

    6413

    积分

    论坛元老

    积分
    6413
    发表于 2019-1-24 15:56:00 | 显示全部楼层
    好像还有几个母号,可以开子号的,也可以FTP的,十几年了
    回复

    使用道具 举报

    52

    主题

    879

    回帖

    2032

    积分

    金牌会员

    积分
    2032
     楼主| 发表于 2019-1-24 16:00:14 | 显示全部楼层

    leelei 发表于 2019-1-24 16:00

    好像还有几个母号,可以开子号的,也可以FTP的,十几年了

    大佬
    回复

    使用道具 举报

    29

    主题

    1006

    回帖

    2223

    积分

    金牌会员

    积分
    2223
    发表于 2019-1-24 16:01:33 | 显示全部楼层
    看到这域名第一个想到的是曾经大名鼎鼎的天涯海阁论坛,有没有看过的。
    回复

    使用道具 举报

    52

    主题

    879

    回帖

    2032

    积分

    金牌会员

    积分
    2032
     楼主| 发表于 2019-1-24 16:00:00 | 显示全部楼层

    dalaoa 发表于 2019-1-24 16:24

    想用图床,何必这么麻烦那
    这段代码,复制另存为 index.html
    本地打开,直接上传就行了

    别人的API,而且又是国内,总归没有自己搭建的放心,
    小鸡或者免费的虚拟主机利用起来,给博客搭建一个放心的图床和小文件存储不好吗?
    回复

    使用道具 举报

    41

    主题

    221

    回帖

    581

    积分

    高级会员

    积分
    581
    发表于 2019-1-24 16:03:09 | 显示全部楼层

    feixiang 发表于 2019-1-24 16:26

    别人的API,而且又是国内,总归没有自己搭建的放心,
    小鸡或者免费的虚拟主机利用起来,给博客搭建一个放 ...

    嗯  你说的也有道理的!cf的缓存一般怎么设置?
    回复

    使用道具 举报

    0

    主题

    1

    回帖

    4

    积分

    新手上路

    积分
    4
    发表于 2019-1-24 19:32:00 | 显示全部楼层

    dalaoa 发表于 2019-1-24 16:24

    想用图床,何必这么麻烦那
    这段代码,复制另存为 index.html
    本地打开,直接上传就行了

    这个不错

    收下了
    dalaoa 发表于 2019-1-24 16:31

    嗯  你说的也有道理的!cf的缓存一般怎么设置?

    百度一下,我也忘了,我没设缓存,64M内存的小鸡安装的lighttpd,几分钟服务就不见了。
    我刚弄了一个定时重启lighttpd,应该可以再坚持坚持。
    回复

    使用道具 举报

    您需要登录后才可以回帖 登录 | 立即注册

    本版积分规则

    Archiver|手机版|小黑屋|Discuz! X

    GMT+8, 2025-4-20 05:13 , Processed in 0.023928 second(s), 3 queries , Gzip On, Redis On.

    Powered by Discuz! X3.5

    © 2001-2024 Discuz! Team.

    快速回复 返回顶部 返回列表