+ This page contains all the relevant information about this project, how to use it, deploy it, edit it, contribute to it, and more.
+
On this page
@@ -140,10 +143,15 @@
About Networking Toolbox
-
Motive
+
What
- I built this, because these are basic networking tasks that I find myself doing frequently, yet nothing existing on the web quite fit my use case.
-
+ Networking Toolbox is an all-in-one suite of 100+ networking utilities,
+ designed to make common network-related tasks easier and more efficient.
+
+
Why
+
+ My motive for building this, is that these are basic networking tasks that
+ I find myself doing frequently, yet nothing existing on the web quite fit my use case.
Some websites came close, but I dislike ads, paywalls, tracking, and clunky UIs. And most importantly, I wanted a single place with all the tools I needed.
And often when I needed these utilities, it was because I was working on a server without internet access, so I needed something with offline functionality.
@@ -152,6 +160,21 @@
Then, I wanted to help make life slightly easier for sysadmins, so I've polished, tested, documented and open sourced this project.
It can now be used by anyone, anywhere, anytime. Totally free either at networking-toolbox.net or self-hosted.
+
Where
+
+ I am running a free, public instance at networking-toolbox.net,
+ which you're free to use (for commercial and personal use), however you like. There's no tracking, no ads, no paywall, no bs.
+
+ You can also self-host it on your own server, using Docker or any static hosting provider
+
+
How
+
+ This project is built with SvelteKit and
+ TypeScript.
+ It's a static web app, that can be deployed anywhere, including serverless platforms like Vercel or Netlify.
+ It can also be self-hosted using Docker or any static hosting provider.
+
+
@@ -173,6 +196,12 @@
+
+ Pretty much everything I build is free to use, open source, and without ads, tracking or paywalls.
+ But running these projects does cost money. And maintaining them takes time.
+ So, if you've found this app useful, please consider sponsoring me.
+ My sponsors mean the world to me, and it helps cover my hosting costs.
+
diff --git a/src/routes/diagnostics/dns/lookup/+page.svelte b/src/routes/diagnostics/dns/lookup/+page.svelte
index 4f89b0f..3d56b7c 100644
--- a/src/routes/diagnostics/dns/lookup/+page.svelte
+++ b/src/routes/diagnostics/dns/lookup/+page.svelte
@@ -13,6 +13,7 @@
let results = $state(null);
let error = $state(null);
let copiedState = $state(false);
+ let selectedExampleIndex = $state(null);
// Reactive validation state
const isInputValid = $derived(() => {
@@ -78,23 +79,41 @@
if (!response.ok) {
const errorText = await response.text();
- let errorMessage = `Lookup failed (${response.status})`;
try {
- const errorData = JSON.parse(errorText);
- if (errorData.error) {
- errorMessage = errorData.error;
+ const responseData = JSON.parse(errorText);
+
+ // Handle 404 as "no records found" (warning, not error)
+ if (response.status === 404 && responseData.noRecords) {
+ results = {
+ noRecords: true,
+ message: responseData.message,
+ name: responseData.name,
+ type: responseData.type,
+ resolver: useCustomResolver && customResolver ? customResolver.trim() : resolver
+ };
+ return; // Don't throw error, just set results
}
- } catch {
+
+ // Handle other structured errors
+ if (responseData.error) {
+ throw new Error(responseData.error);
+ }
+
+ // Use API message if available
+ if (responseData.message) {
+ throw new Error(responseData.message);
+ }
+ } catch (parseError) {
// If not JSON, use status-based message
if (response.status === 400) {
- errorMessage = 'Invalid request. Please check your input values.';
+ throw new Error('Invalid request. Please check your input values.');
} else if (response.status === 500) {
- errorMessage = 'DNS lookup service temporarily unavailable. Please try again.';
+ throw new Error('DNS lookup service temporarily unavailable. Please try again.');
}
}
- throw new Error(errorMessage);
+ throw new Error(`Lookup failed (${response.status})`);
}
results = await response.json();
@@ -106,12 +125,17 @@
}
}
- function loadExample(example: typeof examples[0]) {
+ function loadExample(example: typeof examples[0], index: number) {
domainName = example.domain;
recordType = example.type;
+ selectedExampleIndex = index;
performLookup();
}
+ function clearExampleSelection() {
+ selectedExampleIndex = null;
+ }
+
async function copyResults() {
if (!results?.Answer?.length) return;
@@ -137,7 +161,12 @@
{#each examples as example, i}
- loadExample(example)}>
+ loadExample(example, i)}
+ use:tooltip={`Query ${example.type} records for ${example.domain}`}
+ >
Test Cross-Origin Resource Sharing (CORS) policies by sending preflight requests and analyzing the server's CORS configuration. Check if your origin is allowed to access the target resource.
+
+
+
+
+
+
+
+
CORS Examples
+
+
+ {#each examples as example}
+ loadExample(example)}>
+
{results.analysis.corsEnabled ? 'Server has CORS headers configured' : 'No CORS headers found - requests will be blocked by browsers'}
+
+
+
+
+
+
+ Origin Access
+
+ {#if results.analysis.allowsOrigin}
+ Origin '{origin}' is allowed to access this resource
+ {:else}
+ Origin '{origin}' is not allowed to access this resource
+ {/if}
+
+
+
+
+
+
+
+ Credentials Support
+
{results.analysis.allowsCredentials ? 'Cookies and credentials can be sent' : 'Cookies and credentials cannot be sent'}
+ {#each Object.entries(results.preflight.headers) as [name, value]}
+
+
+ {name}: {value}
+
+
+ {/each}
+
+
+ {:else if results.analysis.corsEnabled}
+
+
+
CORS enabled but no detailed headers available
+
+ {:else}
+
+
+
No CORS headers found
+
The server does not provide CORS headers - cross-origin requests will be blocked by browsers
+
+ {/if}
+
+
+ {/if}
+
+ {#if error}
+
+
+
+
+
+ CORS Check Failed
+
{error}
+
+
+
+
+ {/if}
+
+
+
+
+
About CORS
+
+
+
+
+
What is CORS?
+
Cross-Origin Resource Sharing (CORS) is a security mechanism that allows or restricts web pages from making requests to a different domain, protocol, or port than the one serving the web page.
+
+
+
+
Preflight Requests
+
For certain requests, browsers send a preflight OPTIONS request to check if the actual request is allowed. The server responds with CORS headers indicating permissions.
+
+
\ No newline at end of file
diff --git a/src/routes/diagnostics/http/headers/+page.svelte b/src/routes/diagnostics/http/headers/+page.svelte
new file mode 100644
index 0000000..244810a
--- /dev/null
+++ b/src/routes/diagnostics/http/headers/+page.svelte
@@ -0,0 +1,415 @@
+
+
+
+
+
HTTP Headers Analyzer
+
Analyze HTTP response headers, status codes, and response metadata. Supports custom request methods and headers for comprehensive HTTP testing.
+
+
+
+
+
+
+
+
Header Examples
+
+
+ {#each examples as example, i}
+ loadExample(example, i)}
+ use:tooltip={`Analyze headers for ${example.url}`}
+ >
+
+ Time to First Byte: ~{results.timings.ttfb.toFixed(1)}ms
+
+
+
+
* Timing values are approximations when not isolated
+
+ {/if}
+
+
+ {/if}
+
+ {#if error}
+
+
+
+
+
+ Request Failed
+
{error}
+
+
+
+
+ {/if}
+
+
+
+
+
About HTTP Headers
+
+
+
+
+
Response Headers
+
HTTP headers provide metadata about the response, including content type, caching instructions, security policies, and server information.
+
+
+
+
Status Codes
+
+
2xx: Success responses
+
3xx: Redirection responses
+
4xx: Client error responses
+
5xx: Server error responses
+
+
+
+
+
Common Headers
+
+
Content-Type: MIME type of content
+
Cache-Control: Caching directives
+
Set-Cookie: Cookie instructions
+
Location: Redirect target URL
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/src/routes/diagnostics/http/perf/+page.svelte b/src/routes/diagnostics/http/perf/+page.svelte
new file mode 100644
index 0000000..929f540
--- /dev/null
+++ b/src/routes/diagnostics/http/perf/+page.svelte
@@ -0,0 +1,554 @@
+
+
+
+
+
HTTP Performance Analyzer
+
Measure HTTP request performance including DNS resolution, TCP connection, TLS handshake, and response times. Get detailed timing breakdowns and performance insights.
+
+
+
+
+
+
+
+
Performance Examples
+
+
+ {#each examples as example}
+ loadExample(example)}>
+
{results.performance.hasCompression ? 'Response is compressed' : 'No compression detected'}
+
+
+
+
+
+
+ HTTP Version
+
{results.performance.httpVersion}
+
+
+
+
+
+
+ Connection Reuse
+
{results.performance.connectionReused}
+
+
+
+
+
+
+ {/if}
+
+ {#if error}
+
+
+
+
+
+ Performance Test Failed
+
{error}
+
+
+
+
+ {/if}
+
+
+
+
+
About HTTP Performance
+
+
+
+
+
Timing Components
+
+
DNS: Domain name resolution time
+
TCP: TCP connection establishment
+
TLS: SSL/TLS handshake (HTTPS only)
+
TTFB: Server processing and response start
+
+
+
+
+
Performance Grades
+
+
A (≤200ms): Excellent performance
+
B (≤500ms): Good performance
+
C (≤1000ms): Acceptable performance
+
D/F (>1000ms): Poor performance
+
+
+
+
+
Optimization Tips
+
Use CDN for faster response times, enable compression, implement HTTP/2, optimize DNS resolution, and consider connection keep-alive for multiple requests.
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/src/routes/diagnostics/http/redirect-trace/+page.svelte b/src/routes/diagnostics/http/redirect-trace/+page.svelte
new file mode 100644
index 0000000..c8b2a50
--- /dev/null
+++ b/src/routes/diagnostics/http/redirect-trace/+page.svelte
@@ -0,0 +1,535 @@
+
+
+
+
+
HTTP Redirect Tracer
+
Follow and analyze HTTP redirect chains to understand the complete journey from initial URL to final destination. Track status codes, locations, and security implications.
+
+
+
+
+
+
+
+
Redirect Examples
+
+
+ {#each examples as example}
+ loadExample(example)}>
+
Each redirect adds latency. Minimize redirect chains for better performance. Use 301/308 for permanent moves and 302/307 for temporary ones.
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/src/routes/diagnostics/http/security/+page.svelte b/src/routes/diagnostics/http/security/+page.svelte
new file mode 100644
index 0000000..f218eaa
--- /dev/null
+++ b/src/routes/diagnostics/http/security/+page.svelte
@@ -0,0 +1,442 @@
+
+
+
+
+
HTTP Security Headers Analyzer
+
Analyze and evaluate security headers to identify potential vulnerabilities and security improvements. Check for HSTS, CSP, XSS protection, and other essential security headers.
+
+
+
+
+
+
+
+
Security Examples
+
+
+ {#each examples as example}
+ loadExample(example)}>
+
Content-Security-Policy: Prevents XSS and injection attacks
+
X-Frame-Options: Prevents clickjacking attacks
+
X-Content-Type-Options: Prevents MIME sniffing
+
+
+
+
+
Additional Protection
+
+
Referrer-Policy: Controls referrer information
+
Permissions-Policy: Controls browser features
+
Cross-Origin-*: CORS and isolation policies
+
X-XSS-Protection: Legacy XSS protection
+
+
+
+
+
Implementation Tips
+
Start with basic headers (HSTS, CSP, X-Frame-Options) and gradually add more. Test thoroughly as some headers may break functionality if misconfigured.