Explained: 7 Settings to Secure Nginx Web Server | Securing Nginx
HTML-код
- Опубликовано: 9 июл 2024
- In this video, you will learn how to secure Nginx by modifying the Nginx configuration file with these seven settings.
Join this channel to get access to perks: www.youtube.com/@lazysysad/join
server_tokens off;
more_clear_headers Server;
add_header Content-Security-Policy "default-src 'self'" always;
add_header X-Frame-Options "deny" always;
add_header X-Content-Type-Options "nosniff" always;
proxy_hide_header X-Runtime;
proxy_hide_header X-powered-by;
I'll also demonstrate what each option does.
PLEASE SUBSCRIBE :)
PLEASE HIT LIKE IF IT HELPED :)
GIVE SUPPORT - / lazysysad
BUY ME A COFFEE - www.buymeacoffee.com/lazysysad
PAYPAL - paypal.me/lazysysad
LINKS:
How to Install Nginx Web Server - • How to Install Nginx W...
Chapters:
00:00 Intro
00:14 server_tokens off;
01:53 more_clear_headers Server;
03:22 add_header Content-Security-Policy "default-src 'self'" always;
05:14 add_header X-Frame-Options "deny" always;
06:37 add_header X-Content-Type-Options "nosniff" always;
09:26 proxy_hide_header X-Runtime;
10:55 proxy_hide_header X-powered-by;
11:50 Outro
Drop me your feedback and comments below.
That's all for now.
If this video helped you in any way, please like share and subscribe!
Thank you!!!
Hi. Great video thanks. Would also add an 8th one by making sure the Strict-Transport-Security is enforced ;).
Good content bro in a single video. Keep uploading like this. Thanks
Glad you liked it and thanks.
That was Spectacular !!!
Thanks
Thank you too!
Excellent content brother.
Thank you!
great content bro. now i can just copy your video url and share it to my developer instead explain it to them everytime
Please do! I appreciate that. I'm glad you liked the video.
How to secure Cookies for sites on a Nginx server? There was a Nginx module, but that one is deprecated.
Hi, could you please do a video on caching images on nginx, like for example, all my images are in
/var/something directory, how do I cache these images? And serve from nginx
Thanks if you can do this!
Great suggestion!
how to hide Server name, andDate?
I want to secure nginx web server on fedora os , this video is not for me
it doesn't matter what OS you're using 👍
add_header Content-Security-Policy "default-src 'self'" always; broke my website. It looks as if the CSS is gone.