blank的编程之路


  • 首页

  • 归档

  • 搜索
consul atomikos mybatisplus druid nexus nas named bind mysqldump acme.sh Dockerfile rsync keepalived swarm kibana ubuntu linux scp bugfix https ssl certbot curl gogs adminer harbor yum portainer python kubernetes idea java springboot maven docker-compose redis nginx mysql brew git chocolatey jenkins elasticsearch docker haproxy rabbitmq centos

nginx禁止ip访问 解决域名钓鱼

发表于 2019-04-16 | 分类于 运维 | 0 | 阅读次数 481

最近有发现有个坑爹的域名把解析IP设置成我们的网站IP 有点担心安全问题 所以网上搜索了一下解决方案 还是比较简单的

nginx 配置修改前

域名钓鱼-nginx禁止ip访问前

修改nginx配置如下

#禁止IP访问解决非法域名钓鱼本域名的问题
   server {
        listen 80 default;
        server_name _;
        return 500;
   }

修改nginx配置之后

  • 本文作者: blank
  • 本文链接: https://blankhang.com/2019/04/16/1555377413025
  • 版权声明: 本博客所有文章除特别声明外,均采用CC BY-NC-SA 3.0 许可协议。转载请注明出处!
# consul # atomikos # mybatisplus # druid # nexus # nas # named # bind # mysqldump # acme.sh # Dockerfile # rsync # keepalived # swarm # kibana # ubuntu # linux # scp # bugfix # https # ssl # certbot # curl # gogs # adminer # harbor # yum # portainer # python # kubernetes # idea # java # springboot # maven # docker-compose # redis # nginx # mysql # brew # git # chocolatey # jenkins # elasticsearch # docker # haproxy # rabbitmq # centos
Git常用命令集合
修改git 仓库的用户名和邮箱
© 2021 blank
Everything is energy and everything has a frequency