Windows 10 reached EOS (end of support) on October 14, 2025. If you are on Windows 10, see this article.

Pesquisar no site de suporte

Evite golpes de suporte. Nunca pedimos que você ligue ou envie uma mensagem de texto para um número de telefone, ou compartilhe informações pessoais. Denuncie atividades suspeitas usando a opção “Denunciar abuso”.

Saiba mais

Esta discussão foi arquivada. Faça uma nova pergunta se precisa de ajuda.

I have created an AddOn. How I can protect it so that no one is able to unzip the XPI file, modify and repackage it?

  • 3 respostas
  • 1 tem este problema
  • 21 visualizações
  • Última resposta de cor-el
  • Arquivado

I have created an XPI AddOn and I am planning to distribute it to my client.

The problem is that XPI can be opened using WinZip or WinRar and users can modify the contents and then repackage the modified contents as XPI again.

Is there a way to password protect the XPI file? Is there a way to add a Date based check so that I can control that no one uses it for more than 30 days?

Thanks, Ashish

I have created an XPI AddOn and I am planning to distribute it to my client. The problem is that XPI can be opened using WinZip or WinRar and users can modify the contents and then repackage the modified contents as XPI again. Is there a way to password protect the XPI file? Is there a way to add a Date based check so that I can control that no one uses it for more than 30 days? Thanks, Ashish

Todas as respostas (3)

Hi Ashish, while there are some steps, such as code obfuscation and XPI signing, that you can take to deter unauthorized modification of your add-on code, there is no way to make the contents of your XPI inaccessible to users that would not also make them inaccessible to Firefox itself. Please check out the AMO forums if you'd like to discuss further: https://forums.mozilla.org/addons/

Hi Amy,

It would be really helpful if you could post an example.

You can sign the XPI file if you want to prevent other from making changes to it, but you can't prevent other from inspecting the file this way.