SEO Micro Tool
URL Meta Preview Tool
This project fetches a live page and shows how its search and social metadata appears without using a database.
What It Does
- Accepts any public http:// or https:// URL.
- Extracts title, description, canonical, robots, Open Graph, and Twitter card fields.
- Displays the result in a compact preview pack with diagnostics.
- Supports desktop or mobile fetch profiles.
Setup
- Open
functions/config.local.php. - Optional: adjust
curl_timeout. - Optional: add
adsense_clientandadsense_sidebar_slotto activate the right sidebar ad area. - Make sure PHP
curland DOM parsing are available on the server. - Load
/UrlMetaPreviewTool/in your browser through MAMP.
How To Use
- Paste the target URL.
- Select the fetch mode and preview focus.
- Click
Inspect Metadata. - Review and copy the output from the popup modal.
Folder Structure
index.php– main UI entry pointcss/style.css– interface stylingjs/app.js– browser-side interactions and modal flowfunctions/lib.php– fetch, parse, validation, and rate limiting logicfunctions/api.php– backend API endpointfunctions/config.local.php– local settings and ad configurationstorage/logs– error and debug logs
Security Notes
- The
functionsandstoragefolders are protected with.htaccess. - Requests use a CSRF token.
- A simple file-based rate limit reduces abuse without a database.
Troubleshooting
- If fetching fails, confirm the target page is public and returns HTML.
- If parsing fails, inspect the generated log file under
storage/logs. - If the popup does not open, make sure JavaScript is enabled.
- If folder protection does not work, make sure Apache allows
.htaccessoverrides.