Articles in this section

How to protect a website from clickjacking in Plesk for Linux

kb: how-to Plesk for Linux ABT: Group B

Applicable to:

  • Plesk for Linux

Question

How to prevent clickjacking using the Apache/nginx directives on the Plesk server?

Answer

To prevent clickjacking, add the X-Frame-Options directive with the DENY value to Apache and nginx configuration of a domain:

  1. Log in to Plesk.

  2. Go to Domains > example.com > Apache & nginx Settings.

    • For Apache, add this line to the Additional directives for HTTP and Additional directives for HTTPS fields:

      CONFIG_TEXT: Header set X-Frame-Options DENY

    • For nginx, add this line to the Additional nginx directives field:

      CONFIG_TEXT: add_header X-Frame-Options DENY;

      Note: This configuration may break some Roundcube options.

 

Additional Information

Was this article helpful?

Comments

2 comments
Date Votes

Please sign in to leave a comment.