X-XSS Protection in VestaCP

x xss protection

Edit /etc/nginx/conf.d/nginx.conf

Add

add_header X-Frame-Options SAMEORIGIN;
add_header X-Content-Type-Options nosniff;
add_header X-XSS-Protection "1; mode=block";

 

Save and reload nginx

service nginx restart

 

Check Nginx header

curl -I domain.com

 

nginx header check

 

4.5/5 - (156 bình chọn)

1 những suy nghĩ trên “X-XSS Protection in VestaCP

Để lại một bình luận

Email của bạn sẽ không được hiển thị công khai. Các trường bắt buộc được đánh dấu *