10up/restricted-site-access

Where should I add rsa_trusted_proxies and rsa_trusted_headers code?

ngatti-tmm opened this issue · 2 comments

Describe your question

I have installed the plugin and I want to configure trusted proxies IP and headers. I am installing plugins via composer.json (wordpress is installed via bedrock).
According to (https://github.com/10up/restricted-site-access#how-secure-is-this-plug-in) I should configure rsa_trusted_proxies and rsa_trusted_headers filters. But I don't know where to save it considering I shouldn't modify plugin files.
Where can I configure them?

Meanwhile I circumvent the issue by configuring rsa_activation_version to 7.4.2 with
wp option update rsa_activation_version 7.4.2
Thanks.

Code of Conduct

  • I agree to follow this project's Code of Conduct

These filters can be used in a few places, depending on your setup.

If you are using a custom theme, adding these to your functions.php (or similar) is a good choice.

You can also create a custom plugin (probably an MU plugin) that adds these filters.

Thank you, added as an mu-plugin and worked.