跳至内容
KnowHost

KnowHost

知主机, 聊主机, 分享优惠

KnowHost
  • 登录账户
  • 帖子
    • 最新帖子
    • 热门帖子
  • 论坛
    • 所有版块
    • 论坛搜索
    • 我要发帖
    • 在线用户
  • VPS
    • RackNerd
    • CloudCone
    • DMIT.io
    • HostDare
    • 搬瓦工
    • NATVPS
    • FreeVPS.org
  • XUAN
    • 如何选择 VPS?
    • $1/月 VPS 主机
    • $2/月 VPS 主机
    • 低价 VPS 主机推荐
    • 低价 Windows VPS
    • 洛杉矶 VPS 主机
    • 低价 NVMe 存储 VPS
    • 低价 AMD Ryzen VPS
    • YABS.sh
    • OVZ vs Xen vs KVM
  • 工具
    • 域名可用性查询
    • 域名WHOIS查询
    • DNS 查询
    • IP 地址查询
    • CSR 生成器
    • 站长工具大全
  • 知识库
  • WP
    • WordPress 插件
    • WordPress 主题
    • PerfMatters
  • wpForowpForo
  • 关于
    • Bio
Hosted by 腾讯云

域名注册商

16
  • GoDaddy
  • name.com
  • DynaDot
  • NameCheap
  • iwantmyname
  • 101domain
  • DomainDiscount24
  • Google Domains
  • Porkbun
  • NameSilo
  • EuroDNS
  • Register.com
  • Network Solutions
  • ionos (1and1)
  • gandi.net
  • Hover.com

VPS 主机商

21
  • BandWagonHost
  • CloudCone
  • DigitalOcean
  • HostWinds
  • ServerHub
  • PhotonVPS
  • LightSail
  • LightHouse
  • LightNode
  • Linode
  • RackNerd
  • Vultr
  • IntoVPS
  • AlibabaCloud
  • PacificRack
  • BuyVM
  • JustHost.ru
  • RamNode
  • DediPath
  • BudgetVM
  • AlphaVPS

共享主机商

2
  • BlueHost
  • HostGator

域名主机工具

13
  • IntoDNS
  • InstantDomainSearch
  • ClouDNS.net
  • HE.net
  • DomainR
  • DomainTyper
  • Free DNS (afraid.org)
  • Free Public DNS (Namecheap)
  • NOIP
  • dns-lookup.com
  • WHO.is
  • CloudFlare
  • FreeDNS (NameCheap)
FOSSBilling

FOSSBilling

30
  • FOSSBilling 简介
  • FOSSBilling 系统要求
  • FOSSBilling 安装
  • 使用 Docker 安装 FOSSBilling
  • 从 BoxBilling 迁移到 FOSSBilling
  • 构建 FOSSBilling
  • 更新 FOSSBilling
  • 手动重置 FOSSBilling 管理员密码
  • FOSSBilling 配置文件
  • FOSSBilling 本地化
  • 配置公司信息
  • 定制发票 PDFs
  • FOSSBilling 电子邮件模板
  • FOSSBilling API 密钥
  • FOSSBilling 域名转售
  • 主机产品类型
  • FOSSBilling 与 CWP 集成
  • FOSSBilling 与 HestiaCP 集成
  • 其他服务器管理
  • FOSSBilling 与 WHM 集成
  • 安全最佳实践
  • FOSSBilling 安全配置
  • JavaScript 中的 API 包装器
  • FOSSBilling API 参考
  • FOSSBilling 文件结构
  • Twig 过滤器 & 功能
  • FOSSBilling 事件钩子
  • FOSSBilling 故障排除
  • 可用的扩展和付款模块
  • FOSSBilling 常见问题
View Categories
  • 首页
  • 知识库
  • FOSSBilling
  • FOSSBilling 安全配置

FOSSBilling 安全配置

FOSSBilling 配置

以下文档 config.php 配置文件下的安全选项。

安全选项

属性描述

配置属性默认值允许值描述
modestrictstrictor regularSetting this to strictsets cookies to have their samesiteattribute set to strictand they will be set as httpOnly. Setting it to regularwill use the default cookie properties except that they will still be set as httpOnly.
force_httpstrueboolSetting this to true will cause FOSSBilling to redirect all requests to HTTPS and force cookies to only be sent over HTTPS.
cookie_lifespan7200intThis property configures the number of seconds that cookies and session is considered valid for. After this time period, they will expire and be destroyed. The default configuration is 7200seconds (2 hours).

配置中的示例

'security' => [	'mode' => 'strict',	'force_https' => true,	'cookie_lifespan' => 7200,],

API 选项

属性描述

配置属性默认值允许值描述
CSRFPreventiontrueboolEnables or disables the usage of a CSRF protection system. This should be enabled at all times unless it is specifically causing issues.

配置中的示例

'api' => [	'CSRFPrevention' => true,],

Cloudflare

  • 启用 IP Geolocation 在您网站的网络设置下。这将允许 FOSSBilling 使用访问者的国家/地区(基于IP地址)来帮助防止会话劫持。

反向代理

指示 HTTPS

由于反向代理通常的工作方式,使用它通常会让 FOSSBilling 认为它是在没有 HTTPS 的情况下访问的。要解决这个问题,只需确保您的反向代理正在转发 X-Forwarded-Proto 标头,并且它已正确设置为 https。

  • NameCheap - .COM 顶级域名仅需 $5.98/年!
  • NATKVM - 购买 NAT VPS 仅需 4.99$/年!
  • RackNerd – 1 GB KVM VPS 仅需 $11.29/年
  • 搬瓦工 - 美西 VPS/三网优化/1 CPU/1G 内存/20G 硬盘/1T 流量/36.36美元/年
更新 2025-11-20
FOSSBilling

您的感觉是什么

  • Happy
  • 常规
  • Sad
安全最佳实践JavaScript 中的 API 包装器

Powered by BetterDocs

  • ★ 腾讯云 – 爆款 2 核 2G 内存 服务器 68元/年 – 首单特惠!
  • ★ 阿里云 – 轻量应用服务器 2 核 2G 内存 38元/年  – 上云首选!
  • ★ NATKVM.net – 超低价购买 NAT KVM VPS 仅需 4.99$/年!
  • ★ RackNerd – 1 CPU/1 GB 内存 KVM VPS 仅需 10.76$/年!
  • ★ CloudCone  – 2 vCPU/2 GB 内存 VPS 终生优惠, 仅需 14.49 $/年!

2025 © KnowHost - 知晓所有主机

托管于 *

148 次查询,使用了 1.965 秒

  • 登录
忘记密码?
忘记密码了吗?请输入您的用户名或邮件地址。您将通过邮件收到一个创建新密码的链接。
body::-webkit-scrollbar { width: 7px; }body::-webkit-scrollbar-track { border-radius: 10px; background: #f0f0f0; }body::-webkit-scrollbar-thumb { border-radius: 50px; background: #dfdbdb }