跳至主要内容

Nginx使用之禁止IP访问

1.添加黑名单配置文件
在 /etc/nginx/conf.d 目录下创建 blocksip.conf 文件,如下格式输入禁止访问的 IP
deny 127.0.0.1;
deny 127.0.0.1;

2.修改完成后
systemctl reload nginx.service



Ref:https://segmentfault.com/a/1190000018124174

评论

此博客中的热门博文

[QV2ray]源码解读

 main.cpp SIGTERM termination request, sent to the program SIGSEGV invalid memory access (segmentation fault) SIGINT external interrupt, usually initiated by the user SIGILL invalid program image, such as invalid instruction SIGABRT abnormal termination condition, as is e.g. initiated by   abort() SIGFPE erroneous arithmetic operation such as divide by zero https://en.cppreference.com/w/c/program/SIG_types 2.Application QVBASEAPPLICATION( SingleApplication ) -Qv2rayPlatformApplication -- Qv2rayWidgetApplication -- Qv2rayQMLApplication -- Qv2rayCliApplication

SSH基本使用

1.创建ssh公钥和私钥 ssh-keygen -t rsa -C [your_mail] 2.打开 公钥id_rsa.pub 复制全部内容到 VPS 3.测试是否连通 ssh -T [VPS地址] 4.保存到keychain,实现永久保存 ssh-add -K ~/.ssh/id_rsa