Skip to content

Commit

Permalink
Header comment added with details
Browse files Browse the repository at this point in the history
Codename, Version, Description, Repo URL, Dev + contact details
  • Loading branch information
Brainhub24 authored Apr 1, 2024
1 parent 8e81c1f commit 8367e95
Showing 1 changed file with 17 additions and 5 deletions.
22 changes: 17 additions & 5 deletions TitanShield.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,17 @@
// Check if the current window is the topmost window
if (window !== window.top) {
// If not, redirect the top window to the current location
window.top.location.href = window.location.href;
}
/**
* TitanShield.js
* Version: 1.1.0 Beta
* Description: This script provides frame blocking functionality to prevent clickjacking attacks by ensuring the website is not loaded within an iframe.
*
* Repository: https://github.com/Brainhub24/TitanShield
* Developer : Jan Gebser (Brainhub24)
* Contact : [email protected]
*/

(function() {
// Check if the current window is the topmost window
if (window !== window.top) {
// If not, replace the URL of the top window with the current URL
window.top.location.href = window.location.href;
}
})();

0 comments on commit 8367e95

Please sign in to comment.