-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Codename, Version, Description, Repo URL, Dev + contact details
- Loading branch information
1 parent
8e81c1f
commit 8367e95
Showing
1 changed file
with
17 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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; | ||
} | ||
})(); |