开发者

Firefox Plugin Domain Restriction - Similar to IE's SiteLock

开发者 https://www.devze.com 2023-01-13 07:41 出处:网络
I would like to know if there is any functionality in the Gecko SDK/NPAPI that would allow me to restrict a plugin-usage to restricted domains only. Exactly like SiteLock for IE does wi开发者_运维技巧

I would like to know if there is any functionality in the Gecko SDK/NPAPI that would allow me to restrict a plugin-usage to restricted domains only. Exactly like SiteLock for IE does wi开发者_运维技巧th ActiveX components.

Any similar implementation in NPAPI, for example?


Looks like I have to do it manually using NPAPI's GetIdentifier methods to read the url from the DOM tree and act upon it. Ergo just get the page URL using whatever NPAPI method you want to use (NewStream or GetIdentifier) and then compare it to a list of allowed or disallowed domains.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号