How can I add X-XSS-Protection header in apache with htaccess?

How can I add X-XSS-Protection header with .htaccess?

Before add X-XSS-Protection header with htaccess,
First, you must activate rewrite module.



First, you must activate rewrite module.
Ctrl+v this code in terminal.
sudo a2enmod rewrite

If you finished the rewrite activating, You can use htaccess in apache.

Let's add  X-XSS-Protection in apache with htaccess!
Header set X-XSS-Protection "1; mode=block"
Write in htaccess.



Thanks for watching and write the commet to rewrite request or question

Post a Comment

0 Comments