How to prevent opening your site inside iframe of another domain (X-Frame-Options)
Configure your IIS (web.config) to disallow iframe embeding of your content from another web sites
Configure your IIS (web.config) to disallow iframe embeding of your content from another web sites
How to upload file in C# MVC project with additional validation based on content type and file size