Search
 
SCRIPT & CODE EXAMPLE
 

CSHARP

Block iFrames | How to Stop Your Website From Being iFramed

//https://cgscomputer.com/block-iframes-how-to-stop-your-website-from-being-iframed/

//Deny iFraming of your website to everyone:
header set x-frame-options DENY
//Deny iFraming of your website to everyone except those with the same origin:
header set x-frame-options SAMEORIGIN
//Deny iFraming of your website to everyone except the domains you specify – change domain.com to the domain you wish to allow access to:
header set x-frame-options ALLOW-FROM https://domain.com
//Block iFrames on Apache
header always set x-frame-options "SAMEORIGIN"
//Blocking iFrames on Nginx
header always set x-frame-options "SAMEORIGIN"
//Blocking iFrames on IIS
<system.webServer>
  ...
  <httpProtocol>
    <customHeaders>
      <add name="X-Frame-Options" value="sameorigin" />
    </customHeaders>
  </httpProtocol>
  ...
</system.webServer>
Comment

PREVIOUS NEXT
Code Example
Csharp :: asp.net c# get user email address from AD 
Csharp :: curl rest api keycloak 
Csharp :: c# enum get string value 
Csharp :: rename join table ef core 
Csharp :: c# xunit theory classdata model 
Csharp :: unity2d switch camera 
Csharp :: how to access resources in c# 
Csharp :: wpf binding ancestor codebehind 
Csharp :: unity stop object from rotating 
Csharp :: how to we put a link in button in a view in asp.net 
Csharp :: letter to number converter c# 
Csharp :: indexing an array 
Csharp :: input.getbutton unity 
Csharp :: c# clear panel 
Csharp :: Popup open close wpf 
Csharp :: how to instantiate and delete unity 
Csharp :: asp.net core update-database specify environment 
Csharp :: dotnet add package 
Csharp :: c# mysql select into datatable 
Csharp :: hashtable in c# 
Csharp :: c# getting response content from post 
Csharp :: quaternion to euler 
Csharp :: Triangle perimeter 
Csharp :: what are delegates and how to use them c# 
Csharp :: addssdawsdawdsdawasdawasdawdswsddsdawssd 
Csharp :: ExpandoObject Add PropertyName and PropertyValue Dynamically 
Csharp :: Archivarskodex freischalten 
Csharp :: <link rel="stylesheet" href="styles/kendo.common.min.css" / 
Csharp :: c# entity mvc get user from razor layout 
Csharp :: how to assign 2d physics material through script 
ADD CONTENT
Topic
Content
Source link
Name
7+5 =