How to Protect Site from Clickjacking Attack in Nginx
This time i will review about Protect site from clickjacking attact in nginx , or also known as "UI redress attact" are attacks that utilize transparent layer which aims to trick so that when the user clicks a button or a link on other sites such as the original site. And then the attacker intended to hijack the site by routing them to another site, most likely owned by another application, domain, or both. A common technique they do is with iframe technique. Nginx This article I will give some tips and tricks about securing your site for users Nginx. By utilizing the function of the X-Frame-Options header site. Preparation Make sure you have installed Nginx on your server. Then go to Settings in: For Users Debian/Ubuntu: $ sudo nano /etc/nginx/sites-availables/default For Users Fedora/CentOS/RHEL: $ sudo vi /etc/nginx/nginx.conf Then add: server { ... add_header X-Frame-Options "SAMEORIGIN"; ... } See the picture b...