".extra-menu { background-color: #f3f3f3; padding: 20px; } .extra-menu .extra-menu-h { height: 36px; } .extra-menu .extra-menu-h h3 { display:inline-block; } .extra-menu ul a{ text-decoration: none; } .extra-menu .menu-child { text-indent: 4em; } .extra-menu .menu-child:before { left: 4em; } .extra-menu .extra-menu-h h3 { line-height: 36px; } .collapse-toggle { float: right; cursor: pointer; user-select: none; display: inline-flex; align-items: center; font-size: 14px; } .collapse-toggle img { width: 30%; transform: rotate(180deg); } .collapse-content { margin-bottom: 0px !important; margin-top: 20px !important; overflow: hidden; max-height: 0; transition: max-height 0.3s ease-out; } .collapse-content.expanded { max-height: 1000px; /\* 设置一个足够大的值,确保内容可以完全展开 \*/ } .ph-id { position: relative; top: -90px; } jQuery(document).ready(function( $ ) { $('.collapse-toggle').on('click',function(){ var content = document.querySelector('.collapse-content'); content.classList.toggle('expanded'); if (content.classList.contains('expanded')) { $(this).find('div').text('收起'); $(this).find('img').css('transform','rotate(180deg)'); } else { $(this).find('div').text('展开'); $(this).find('img').css('transform','rotate(0deg)'); } }) })
防火墙是一种网络安全系统,可用于控制服务器的入站和出站流量。换句话说,它是服务器安全的一个相当重要的元素。本文将介绍下如何在[Hostinger](/#)国外VPS设置防火墙。
1、如果您使用的是Hostinger[国外VPS](/#),则可用其预安装的CyberPanel面板来管理VPS。访问CyberPanel面板,然后依次选择Server > Security > Firewall,设置防火墙规则。

* 为该规则命名。
* 从下拉列表中选择协议传输控制协议或者用户数据报协议。
* 输入要为指定协议打开的端口。
* 点击“Add”添加按钮。
通过上述步骤,您将添加规则并重新加载防火墙。
2、您在连接到服务器时如果遇到问题,并且您已经设置了防火墙,那么只需重置防火墙即可重新获得访问权限,主要操作步骤如下。
登录到Hostinger账户,然后在客户中心选择VPS,点击要重置防火墙的VPS服务器,查看服务器详情。

在新弹出的界面中,单击左侧菜单栏中的Settings按钮。

您会在页面底部找到一个重置防火墙的按钮,点击它后,即可重置该Hostinger国外VPS服务器防火墙。
"
松果号 作者:松果号原创文章,如若转载,请注明出处:https://www.6480i.com/archives/103387.html