Orca
Orca

Reputation: 2025

Firefox Plugin Domain Restriction - Similar to IE's SiteLock

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 with ActiveX components.

Any similar implementation in NPAPI, for example?

Upvotes: 1

Views: 222

Answers (1)

Orca
Orca

Reputation: 2025

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.

Upvotes: 1

Related Questions