Migrated index.html to index.php to enable dynamic generation of IPv4 and IPv6 endpoints based on the server's domain. This change facilitates the embedding of IP address information via iframe elements, enhancing flexibility and ensuring that the correct IP endpoints are utilized.
Replaced static IP service URLs with dynamic hostname-based URLs in `getMyIP` function to ensure the IP service domain matches the current website's domain, excluding the 'www' prefix. This change enhances flexibility and adaptability, allowing the IP fetching functionality to work seamlessly across different deployments without needing manual URL updates for each domain.
- Removes hard-coded IP service domain.
- Utilizes `window.location.hostname` for dynamic domain resolution.
- Improves service compatibility across varying deployments.
This adjustment addresses potential issues with cross-origin requests and simplifies the deployment process for websites with multiple or changing domains.
Added a badge to the README to encourage support through private.coffee donations, making it easier for users to contribute to the project's development. Also, clarified that our web hosting solution includes both Apache and PHP to provide clearer setup guidance for users looking to implement the service in their own environments.
This enhancement aims to foster community support and ensure users have a clear understanding of the technical requirements for using MyIP.Coffee.
Introduced a new web service, MyIP.Coffee, for displaying client IP addresses. This update includes:
- MIT License addition for open-source usage.
- README for setup instructions and project overview.
- PHP script and nginx configs to support IP address retrieval.
- Basic website structure with HTML, CSS, and JavaScript to display IPv4 and IPv6 addresses on load.
This service aims to provide a user-friendly platform for clients to easily find their public IP addresses, supporting both IPv4 and IPv6 with a focus on simplicity and efficiency. Future improvements may include enhanced IP detection and custom user settings.