What is the purpose of the Anti Framekiller script in PHP?

The purpose of the Anti Framekiller script in PHP is to prevent a website from being displayed within an iframe by malicious websites attempting to hijack the content. This script detects if the website is being loaded within an iframe and redirects the page to the original source to prevent clickjacking attacks.

<?php
header('X-Frame-Options: DENY');
?>