Coder Social home page Coder Social logo

Appendix A: Developer URL canonicalization test cases These example inputs and expected outputs illustrate the desired developer URL to canonicalized domain transformation. Test handling of a typical .com domain https://www.example.com/test example.com https://m.example.com/test example.com https://example.com/test example.com https://subdomain.example.com/test subdomain.example.com https://another.subdomain.example.com/test subdomain.example.com https://subdomain.www.example.com/test example.com Test handing of two-level public suffix https://www.example.co.uk/test example.co.uk https://m.example.co.uk/test example.co.uk https://example.co.uk/test example.co.uk https://subdomain.example.co.uk/test subdomain.example.co.uk https://another.subdomain.example.co.uk/test subdomain.example.co.uk IAB Tech Lab https://iabtechlab.com/ads-txt

https://subdomain.www.example.co.uk/test example.co.uk Test handling of a newer country public suffix registerable namespace https://www.example.uk/test example.uk https://m.example.uk/test example.uk https://example.uk/test example.uk https://subdomain.example.uk/test subdomain.example.uk https://another.subdomain.example.uk/test subdomain.example.uk https://subdomain.www.example.uk/test example.uk Appendix B: Developer URL to app-ads.txt file URL test cases These example inputs and expected outputs illustrate the proper translation from developer URL to app-ads.txt path. Test baseline developer URL This test illustrates baseline URL normalization without any subdomain. ● Developer URL: https://example.com/test ● Verifier will crawl: https://example.com/app-ads.txt Test developer URL with ignored www. subdomain This test illustrates the normalization of the common “www” subdomain. ● Developer URL: https://www.example.com/test IAB Tech Lab https://iabtechlab.com/ads-txt

● Verifier will crawl: https://example.com/app-ads.txt ● Confirm that crawler DOES NOT crawl: https://www.example.com/app-ads.txt Test “m.” developer URL with ignored m. subdomain This test illustrates the normalization of the common “m” subdomain. ● Developer URL: https://m.example.com/test ● Verifier will crawl: https://example.com/app-ads.txt ● Confirm that crawler DOES NOT crawl: https://m.example.com/app-ads.txt Test developer URL with subdomain This test illustrates how the subdomain will be used for locating an app-ads.txt file. ● Developer URL: https://subdomain.example.com/test ● Verifier will first crawl: https://subdomain.example.com/app-ads.txt ● If no file found, verifier will then crawl: https://example.com/app-ads.txt Test developer URL with multiple subdomains This test illustrates how only the first subdomain will be used for locating an app-ads.txt file. ● Developer URL: https://another.subdomain.example.com/test ● Verifier will first crawl: https://subdomain.example.com/app-ads.txt ● If no file found, verifier will then crawl: https://example.com/app-ads.txt Test developer URL with subdomain on a multipart public suffix This test illustrates how only the first subdomain will be used for locating an app-ads.txt file for a URL with a multipart public suffix. ● Developer URL: https://another.subdomain.example.co.uk/test ● Verifier will first crawl: https://subdomain.example.co.uk/app-ads.txt ● If no file found, verifier will then crawl: https://example.co.uk/app-ads.txt

cyperhasan's Projects

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.