2
Down
Comment
collect
share
出差君的笔记
不定期更新的小笔记,大多数都是懒得去翻Google而做的合集,以及一些我碰见过的坑。(不定期更新)
一般都是更新一些干货,如果有问题也请在评论区指出。由于是笔记,而我也没强迫症,所以排版都是比较随意的。
host文件:
一般情况下对于大多数人来说基本上用电脑不会去修改这个文件,而对于需要网络调试以及避免公开ip的情况下可以绕开对公共DNS的请求来进行调试(指绕开CDN和DNS)。系统在寻找一个域名请求的IP时会优先从host文件里面读取如果,找不到的再去DNS请求IP并进行握手。而像很多病毒,钓鱼软件也其实是用的这个文件来对你的正常访问进行挟持,比方说把你的网银域名指向到他的钓鱼网站之类的。所以为了系统安全最好还是装个杀毒软件。
而服务器其实并没有特别好用的杀毒软件,而类似之前的log4j漏洞就可以用来实体提权,所以尽量使用复杂的密码并且使用密匙登录能减少很多情况下的暴力破解,并且尽量少用root账户(linux系统的)。
而其实host文件的使用方式十分简单,并且使用方法Linux和Windows通用
格式:
域名 IP(可以多个IP指向同一域名)
文件位置:
Linux:/etc/hosts
Windows:C:\Windows\system32\drivers\etc\hosts
说实话用习惯Linux的/就很不习惯win的\
平常一般也没啥用,上面的指向也就127.0.0.1是本地ip,但如果说你某天看见hosts文件里面有不是你自己添加的ip指向某个你常用的地址,请及时备份文件并且全盘杀毒。并且有可能你备份的文件里面也有病毒,请想办法进行清理。
DeclarationAll articles on this site, unless otherwise indicated or marked, are original publications of this site. Any individual or organization is prohibited from copying, stealing, collecting, or publishing the content of this site to any website, book, or other media platform without the consent of the author. If the content of this site infringes upon the legitimate rights and interests of the original author, please contact us for processing: DMCA Report













This uploader feels lonely