Code Monkey home page Code Monkey logo

domain-registry-provider's Introduction

This is the library I use in TrustKit to detect whether A is a subdomain of B. I had to make minor changes so that it builds for OS X and iOS.

Generating the domain table

python src/registry_tables_generator/registry_tables_generator.py src/third_party/effective_tld_names/public_suffix_list.dat out.h out.test

Build

First install gyp:

git clone https://chromium.googlesource.com/external/gyp
cd gyp
sudo ./setup.py install

Then use it to build the project:

cd src
build/run_gyp

Lastly, open build/all.xcodeproj to build the individual libraries; remember to use Xcode's Archive build operation so that the libraries are built for Release and with bitcode enabled.

To build a universal library (OS X & iOS), a script is available at ./create_universal_libraries.py.

In your project, you can then import the libraries as static dependencies and then add the domain_registry.h header.

For updating, see: https://github.com/pagespeed/mod_pagespeed/wiki/Updating-the-Public-Suffix-List

domain-registry-provider's People

Contributors

crowell avatar jeffkaufman avatar nabla-c0d3 avatar

Watchers

 avatar  avatar  avatar

Forkers

firefoxxy8

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.