GithubHelp home page GithubHelp logo

plumpmath / solidcubes.webutils.webbrowser Goto Github PK

View Code? Open in Web Editor NEW

This project forked from gerardo-lijs/solidcubes.webutils.webbrowser

0.0 0.0 0.0 121 KB

Small WebBrowser based on CefSharp to restrict users browsing to limited domains/webs

C# 100.00%

solidcubes.webutils.webbrowser's Introduction

SolidCubes WebUtils WebBrowser

This is a small browser I needed in order to replace a 10 year old VB6 WebBrowser control since it no longer worked with Internet Explorer ancient version and the website they need to browse!!

It's kind of minimal and there is plenty of room for features to be added and for code to be refactored and improved. Still, I decided to share, in case it's useful for somebody to copy/paste pieces of it or inspire ideas.

The project uses CefSharp 51 (NuGet version) and works on x86 or x64 (read CefSharp blogs about how to compile/debug which each target).

Highlights:

  1. Features

    • Allows to restric the browsing to only some domains
    • Uses lastest available version of CefSharp (great compatibility with HTML5, CSS3, Javascript, etc so almost every website works!)
    • Disables right click on web pages
    • Disables PopUps (It actually runs them on the same main browser but you could change to whatever your needs)
  2. Run from command line

    If executed as Windows Application if uses Main and takes arguments from command line for Url to Browse and Domains to restrict the user to. Convert to Class Library if you prefer to avoid this.

  3. Run with a reference to this Windows Application / Class Library

    using SolidCubes.WebUtils;

    WebBrowser.Open("www.test.com", true, "*.test.com") //Modal and limited to test.com domain and subdomains

  4. Run with custom config class

    using SolidCubes.WebUtils;

    var conf = new WebBrowserConfig(); conf.StarUrl = StartUrl; conf.Modal = Modal; conf.DomainConstraint = DomainConstraint.ToList();

    WebBrowser.Open(conf);

solidcubes.webutils.webbrowser's People

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.