How to Set X-Content-Type-Options HTTP Security Header in WordPress

preview_player
Показать описание
In this wordpress tutorial for beginners you will learn how to enable / add x content type options http security header in wordpress website /domain using htaccess file.

* Find Code in Top Pinned Comment Section.

* Add code in .htaccess file.
* Header onsuccess unset X-Content-Type-Options
Header always set X-Content-Type-Options "nosniff"

#xcontenttypeoptions #htaccess #header #securityheaders #website #wordpress #wordpresstutorial #webtaskwithhassan #hassangilani
Рекомендации по теме
Комментарии
Автор

Use this code:

<IfModule mod_env.c>
Header onsuccess unset X-Content-Type-Options
Header always set X-Content-Type-Options "nosniff"
SetEnv modHeadersAvailable true
</IfModule>

WebTaskWithHassan
Автор

Hassan AOA. I did not find the code. Can you share again?

Azam-SEO