Notes

Forms

Security notes, SOC lab write-ups and tested code by Mahir Faysal, a SOC Level 1 cybersecurity learner in Bangladesh, plus notes from my Next.js and Gemini projects. Sample posts are marked and drafts stay in the admin area.

UK Phone Number Regex for JavaScript and Python (Tested)
Coding tips

UK Phone Number Regex for JavaScript and Python (Tested)

Strip spaces, turn +44 into 0, then check for 07 plus nine digits. Tested JavaScript and Python code for every UK number type, E.164 storage, display spacing and libphonenumber.

October 6, 2026 · 19 min read · 111 views

Regex for Email Validation in JavaScript (Tested)
Coding tips

Regex for Email Validation in JavaScript (Tested)

A simple email regex for JavaScript forms, compared with a strict pattern and the browser's own check on ten addresses, plus a regex that froze for 1.5s.

October 4, 2026 · 8 min read · 414 views

JavaScript Fetch POST JSON Example (With Errors)
Coding tips

JavaScript Fetch POST JSON Example (With Errors)

Send JSON with fetch(): method, Content-Type and JSON.stringify, the two mistakes that send an empty body, response.ok checks, timeouts and FormData.

October 4, 2026 · 9 min read · 152 views

Simple Math Captcha in PHP With Sessions
Coding tips

Simple Math Captcha in PHP With Sessions

A simple PHP math captcha in two functions: store the answer in the session, check it once with ctype_digit and ===, then add a honeypot and time check.

October 2, 2026 · 8 min read · 38 views

0%