GithubHelp home page GithubHelp logo

mauvehed / yourip Goto Github PK

View Code? Open in Web Editor NEW
3.0 1.0 1.0 1.08 MB

A simple web site to return yourIP

Home Page: https://yourip.app/

License: MIT License

Procfile 0.47% Python 77.92% HTML 5.82% Dockerfile 15.80%
flask python what-is-my-ip ip-address ip-address-lookup ip-lookup whatismyip

yourip's Introduction


Deployment CodeQL

Codacy Badge Project license Website

About

yourIP started as a simple web app to fulfill a common need I have of identifying my public IP without having to use other methods to relay it back to me. This is half a purposeful tool and the other half a nice excuse to learn some new things and deployment technologies.

Built With

Usage

Development

Please see Contributing for how to setup a dev environment

Using the website

The current deployment of this tool is hosted and available to all online. You will have a couple choices for how you access the website and what format your ask for the IP address to be returned in.

  1. Point your browser to the official app URL at https://yourip.app

  2. Use your favorite command line web tool (e.g. curl, wget) to access one of the two endpoints (raw or json)

    $ curl -L yourIP.app/json
    {
      "ip": "123.45.6.78"
    }
    $ curl -L yourIP.app/raw
    123.45.6.78

Issues and feature requests

You've found a bug in the source code, a mistake in the documentation or maybe you'd like a new feature? You can help us by submitting an issue on GitHub. Before you create an issue, make sure to search the issue archive -- your issue may have already been addressed!

Please try to create bug reports that are:

  • Reproducible. Include steps to reproduce the problem.
  • Specific. Include as much detail as possible: which version, what environment, etc.
  • Unique. Do not duplicate existing opened issues.
  • Scoped to a Single Bug. One bug per report.

Even better: Submit a pull request with a fix or new feature!

Contributing

First off, thanks for taking the time to contribute! Contributions are what make the open-source community such an amazing place to learn, inspire, and create. Any contributions you make will benefit everybody else and are greatly appreciated.

Please read our contribution guidelines, and thank you for being involved!

Security

  • yourIP follows good practices of security, but 100% security cannot be assured.
  • yourIP is provided "as is" without any warranty. Use at your own risk.

For more information and to report security issues, please refer to our security documentation.

License

This project is licensed under the MIT license.

See LICENSE for more information.

Acknowledgements

Long desired to build, but for sure inspired by Zate's https://urip.fyi web project in Go

yourip's People

Contributors

codacy-badger avatar dependabot[bot] avatar mauvehed avatar semgrep-bot avatar sourcery-ai[bot] avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar

Forkers

sjpi

yourip's Issues

Add endpoint for RAW output (IP only)

Add a new endpoint (/raw) which returns an HTML page with only the user's IP. This can be easily utilized for shell scripting and similar methods.

Attach domain

Attach a vanity domain to this app for easy reference (bonus for TLS/HSTS)

Add endpoint for JSON output

Add a new endpoint (/json) which returns a JSON blob with only the user's IP. This can be easily utilized for shell scripting and similar methods.

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.