<system.webServer>
...
<httpProtocol>
<customHeaders>
<add name="X-Frame-Options" value="SAMEORIGIN" />
</customHeaders>
</httpProtocol>
...
</system.webServer>
Protected Sub Application_BeginRequest(sender As [Object], e As EventArgs)
Response.Headers.Remove("X-Frame-Options")
Response.AddHeader("X-Frame-Options", "DENY")
End Sub
<script>
try {
if (top.location.hostname != self.location.hostname) throw 1;
} catch (e) {
top.location.href = self.location.href;
}
</script>
Code Example |
---|
Csharp :: c# codebehind Append div |
Csharp :: syoutube |
Csharp :: convert foreach to linq c# |
Csharp :: string to date |
Html :: favicon meta |
Html :: html space |
Html :: fa fa email |
Html :: removing filepath from url using htaccess |
Html :: how to import font awesome in html |
Html :: multipart form |
Html :: free video url for testing |
Html :: call link html |
Html :: #ubuntu "demarrer vcs en super user" |
Html :: html long text three dots |
Html :: fa fa globe |
Html :: html body full height |
Html :: whatsapp message html a tag |
Html :: conveert text to uppercase in input field |
Html :: add icon to website tab |
Html :: bootstrap 5 justify content |
Html :: instagram post iframe |
Html :: html horizontal line style |
Html :: free books |
Html :: radio button required |
Html :: html basic |
Html :: rel noopener noreferrer nofollow |
Html :: img load error use other image |
Html :: how to add background video in html |
Html :: iframe 100 responsive |
Html :: elementor icon controls |