$ show charlesabarnes/SPFtoolbox
SPFtoolbox is a web application for performing DNS and WHOIS lookups. It provides a user-friendly interface to query various DNS record types (A, AAAA, MX, TXT, SPF, DMARC, etc.), check blacklists, verify port connectivity, perform reverse DNS lookups, and retrieve WHOIS information. The application consists of a PHP backend that handles the lookup operations and a JavaScript frontend that manages the user interface and AJAX requests. The backend uses PHP's built-in DNS functions and integrates the phpWhois library for WHOIS queries.
The LLM identified 2 files worth highlighting for reuse:
Implements a clean frontend architecture with theme persistence using localStorage, system preference detection, loading states, and XSS prevention through input sanitization. Demonstrates solid frontend engineering practices for a small application.
Acts as a clean dispatcher that routes lookup requests to appropriate operation handlers based on the request type. Demonstrates good separation of concerns and modular design principles.