Categories
Blogs Free Open Source Software (FOSS) Free to use Wordpress

Pengamanan melalui .htaccess wordpress dari percobaan hacking

# Extra Security Headers

Header set X-XSS-Protection “1; mode=block”
Header always append X-Frame-Options SAMEORIGIN
Header set X-Content-Type-Options nosniff

As a result of this I’ve noticed an increase number of hacking attempts on the site and as a result I wanted to try and secure the site as much as I could.One of those things included enabling X-Frame Options to be Same Origin only, which I’ve managed with the following code snippet set up within the .htaccess file on the site

# Extra Security Headers
<IfModule mod_headers.c>
    Header set X-XSS-Protection "1; mode=block"
    Header always append X-Frame-Options SAMEORIGIN
    Header set X-Content-Type-Options nosniff
</IfModule>

By Hilfan Soeltansyah

Bapak dari 2 anak lelaki, yang memiliki passion di kewirausahaan dalam bidang ICT, kerja di dunia pendidikan Telkom University di Direktorat Pusat Teknologi Informasi Tel-U.
https://hilfan-s.blogspot.com

Leave a Reply

Your email address will not be published. Required fields are marked *