如何阻止某些IP地址访问Firebase Hosting上的网站 [英] How to block certain IP adresses from accessing your website on Firebase Hosting

查看:41
本文介绍了如何阻止某些IP地址访问Firebase Hosting上的网站的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我今天正在查看自己的分析数据,由于我的网站是商店",因此我看到了一些来自一些我认为很奇怪的国家/地区的访问信息网站,仅针对我国的人们.我目前在Firebase托管我的网站,并且尝试了所有内容,包括查看其文档和大量与技术相关的博客.他们所有人总是谈论firebase没有的.htaccess文件.我想知道如何使用firebase.json文件阻止IP范围.

I was looking at my analytics today and I saw some accesses from a few countries in which I thought strange since my website is a "Shop" website and it is directed only for people in my country. I am currently hosting my website in Firebase and I have tried everything from looking at their documentation and tons of tech related blogs. All of them always talk about the .htaccess file that firebase does not have. I was wondering how to block an IP range with the firebase.json file.

推荐答案

这不是Firebase托管的功能.您可以通过联系 Firebase支持来提交功能请求.

This is not a feature of Firebase Hosting. You can submit a feature request by contacting Firebase support.

这篇关于如何阻止某些IP地址访问Firebase Hosting上的网站的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆