The site was well-built at the surface — strong metadata, JSON-LD on 32/33 pages, 2FA on the admin login — but carried a publicly reachable admin backdoor, live API keys in the webroot, ~10 MB of dead weight, an uncompressed JS payload, and layout that broke on phones and tablets. All fixed and verified.
No pricing, plan spec, product name, or WHMCS order URL was changed. Verified programmatically: 65 unique client-area/order links and every dollar figure are byte-identical to the original. Visible page text is identical on 32/32 pages apart from one added "Skip to main content" link.
Every issue below was confirmed by driving a real Apache 2.4 server with the site's actual .htaccess, or a real MySQL database — then re-verified fixed.
internet-radio-hosting/admin/fix-login.php — a one-time repair script left live, no auth. Loading the URL reset the radio admin account to a hardcoded password and printed the credentials on screen. Full takeover of the lead database.ajax-kill.php ran pkill -9 / kill -9 $pid with no auth check. Core includes (ai-core, config-db, cron entry points) were directly hittable over HTTP.sanitizeString() did not strip CR/LF. Sanitized values are interpolated into the mail Subject, so a newline in the name field allowed arbitrary Bcc: — an open relay for spam..htaccess DEFLATE listed only application/javascript, but Apache serves .js as text/javascript — so the filter never matched.min-width:0; hamburger breakpoint raised to 1080px; decorative overflow clipped on <main>.z-index:999; the fixed navbar at 1001 painted over it. The × landed under the hamburger — elementFromPoint returned the hamburger, not the button.z-index:1002.internet-radio-hosting.html; /internet-radio-hosting 301s to …/. Canonical, og:url, all 5 hreflang alternates & the sitemap named the redirecting URL.sitemap.php detects the shadow at runtime so it can't regress.</div>. 17 pages loaded the Inter font while the CSS declares Plus Jakarta Sans — downloading an unused family and rendering in fallback. index.html requested a different km.css?v= than the other 29 → double download.km.js shipped uncompressed to every visitor
gzip + brotli — 70% smaller, proven A/B
scrolled sideways on mobile / tablet
clean at 14 widths, 320–1920px
one generic social image for all 30 pages
unique per-page, spec 1200×630, <300 KB
sub-44px touch targets on /pricing mobile
all controls meet the 44px minimum
| Discipline | Key work |
|---|---|
| Security | Backdoor + 8 repair scripts deleted · endpoint gating · SMTP-injection fix · rate limiting · CSP hardened (base-uri, object-src, frame-ancestors, form-action) · deprecated X-XSS-Protection removed · encrypted key store |
| Performance | JS/font/icon compression · Brotli · immutable media caching · 10 MB dead weight removed · render-blocking script deferred · unified cache-busting |
| SEO | Canonical/og:url/hreflang/sitemap point at serving URLs · runtime shadow detection · heading order fixed (28 pages) · JSON-LD intact 82/82 valid |
| AI SEO / AEO | og:image:width/height for crawler layout · 30 answer-first social cards · robots AI-crawler allowlist & llms.txt confirmed intact |
| UI / UX | :focus-visible ring sitewide · consistent 150–300ms transitions · fine-print legibility · brand-token social cards · mobile menu fixed |
| Mobile | Hero grid collapse · nav breakpoint · 44px touch targets ≤1080px · WCAG 2.5.8 24px floor on desktop · radio sub-app given same treatment |
| Accessibility | Skip links (32 pages, none before) · <main> landmark (31 pages) · heading order · visible focus · prefers-reduced-motion |
| Sales / CRO | Chatbot revived (was dead code) · trust badges & both CTAs now visible on mobile hero · per-page social cards lift link-share CTR |
A modular admin feature — fully independent of the AI blog system, which was left untouched per instruction. 1,165 lines across a library, an admin UI, and a live self-check.
SET (MySQL evaluates left-to-right). Both fixed and re-verified.A local Apache 2.4 + MariaDB + headless-Chromium harness was stood up to exercise the real site. Nginx on the box was left untouched.
| Check | Result |
|---|---|
| PHP lint, all files | 37/37 clean (PHP 8.3) |
| Pages return HTTP 200 | 32/32 + /blog + /sitemap.xml + radio |
| HTML structural validity | 32/32 balanced, one <main>, h1 inside |
| Internal link crawl | 0 broken (1 intended 301) |
| Sitemap URLs live | 57/57 return 200, no redirects |
| Secrets web-reachable | settings/keys/config all 403 or 404 |
| Admin auth (panel + radio) | redirect to login unauthenticated |
| Security headers | 7/7 present, deprecated one gone |
| Lead form end-to-end | insert ✓ · validation ✓ · honeypot ✓ · rate-limit ✓ · injection blocked ✓ |
| Responsive sweep | 0 overflow, 320–1920px, 8 pages |
| Pricing / plans / WHMCS URLs | 0 changes — byte-verified |
| Provider-manager self-check | 31/31 vs real MySQL & live APIs |
data/settings.json and travelled inside the delivered zip. Code cannot un-leak them.config.php still ships root / empty password marked "change for production" — confirm the live server overrides this.