Nginx或javascript阻止特定外部请求文件在iframe中加载

Im am wondering if it is possible to block an external file like jquery from being loaded on my server. For example if an iframe tries to load jquery it will destroy my other stuff so maybe it is possible to use a 403 on that specific file request from external site not just my own. Thank you in advance