From d71ba850e844cf26cf427d318363e0ae2d6e0a09 Mon Sep 17 00:00:00 2001 From: ngqile Date: Tue, 1 Dec 2026 10:37:35 +0800 Subject: [PATCH] feat: INS landing page with lead form Page sends document.referrer in the lead body; the request Referer header only ever holds the landing page URL. Co-Authored-By: Claude Opus 5.5 Claude-Session: https://claude.ai/code/session_01EFUzfmHGGiYUjNcvJoyzdf --- .gitignore | 1 + public/index.html | 338 +++++++++++++++++++++++++++++++++++++++++++++- public/logo.png | Bin 0 -> 5474 bytes server.js | 6 +- server.test.js | 3 +- 5 files changed, 343 insertions(+), 5 deletions(-) create mode 100644 public/logo.png diff --git a/.gitignore b/.gitignore index 3d18da2..ecf7f72 100644 --- a/.gitignore +++ b/.gitignore @@ -3,3 +3,4 @@ data/ *.db .worktrees/ .superpowers/ +.playwright-cli/ diff --git a/public/index.html b/public/index.html index 736b7fe..1f97d14 100644 --- a/public/index.html +++ b/public/index.html @@ -1 +1,337 @@ -INS + + + + + +Infinity Networks Security | Wi-Fi & Network Solutions in Malaysia + + + + + +
+ +
+ +
+
+
+
+

Wireless & network solutions

+

We bridge the gap between business and technology

+

Reliable, branded guest Wi-Fi and network infrastructure for hotels, hospitals, schools and restaurants, designed, installed and supported by our own engineers.

+
    +
  • Trusted by 200+ hotels since 2012
  • +
  • Clients in more than 5 countries
  • +
  • 24/7 support hotline
  • +
  • Represents more than 15 principal vendors
  • +
+
+ +
+

Talk to our team

+

Tell us about your site and our team will get back to you.

+
+
+ + +
+
+ + +
+ + + + +

+

We only use your details to respond to this enquiry.

+
+
+
+
+ +
+
+
2012Established
+
200+Hotels served
+
100+F&B clients
+
24/7Support
+
+
+ +
+
+
+

Solutions for wireless operations

+

Built for the industries we know best

+

Every deployment includes bandwidth management, multi-WAN load balancing and burstable bandwidth, tuned to how your venue actually runs.

+
+
+
+

Hospitality

+

Guest Wi-Fi that keeps travellers coming back, plus tools for operations tracking and your customer database.

+
  • Load balancing for up to 4 WAN lines
  • Scheduled & burstable bandwidth
  • Voucher printing
+
+
+

Healthcare

+

Dependable connectivity for operations, scheduling, stock and patient-facing Wi-Fi.

+
  • User registration portal
  • Bandwidth management
  • 4-WAN load balancer
+
+
+

Education

+

Campus Wi-Fi for data recording, staff intranet and online teaching and learning.

+
  • LDAP integration
  • Burstable bandwidth
  • 4-WAN load balancer
+
+
+

Food & Beverage

+

Diner Wi-Fi that markets for you, with stock control, staff schedules and POS connectivity.

+
  • Advertisement portal
  • Centralised VPN across outlets
  • 2-WAN load balancer
+
+
+
+
+ +
+
+
+

Guest Wi-Fi platform

+

Beautiful, branded and seamless

+

Give customers a login experience that carries your brand, at any of your venues, managed from one cloud platform.

+
+
    +
  • Tiered bandwidth. Offer free access or charge by time, data or speed tier.
  • +
  • Content filtering. Block harmful URLs on the Internet Watch Foundation list, with category reports.
  • +
  • Multilingual login. End-user login available in 24 languages.
  • +
+
+
+ +
+
+
+

Our own product

+

OneBox Internet Gateway

+

One gateway for wireless internet across your whole building, with authentication, bandwidth control, monitoring and accounting built in.

+ Ask about OneBox +
+
    +
  • Zero upfront hardware investment
  • +
  • Unlimited user licences
  • +
  • Multiple internet lines with load balancing
  • +
  • Interfaces with major hotel billing systems
  • +
  • 24/7 live support
  • +
+
+
+ +
+
+
+

Certified IT services

+

From design to day-to-day support

+

We design, install, configure and support your network, and keep listening after go-live.

+
+
+

Analyze

We study your site, users and existing infrastructure.

+

Design

We plan coverage, capacity and the right hardware for your budget.

+

Activate

Our engineers install, configure and test everything on site.

+

Listen

Round-the-clock support and continuous tuning as you grow.

+
+
+
+ +
+
+

Quality over quantity, always

+

Let's talk about the network your guests, patients, students or diners deserve.

+ Get a free consultation +
+
+
+ +
+
+
+
+

Headquarters

+

Infinity Networks Security Sdn Bhd
Unit 2-6, Infinity Tower, No 28, Jalan SS 6/3,
47301 Petaling Jaya, Selangor, Malaysia

+
+
+

Penang branch

+

Infinity Networks Security (North) Sdn Bhd
266, Jalan Macalister,
10400 Pulau Pinang

+
+
+

Get in touch

+

Phone: +603-7623 9807
Email: info@infinitynetworks.com.my
Mon–Fri, 9:00 AM – 6:00 PM
Support: 24/7

+
+
+ +
+
+ + + + diff --git a/public/logo.png b/public/logo.png new file mode 100644 index 0000000000000000000000000000000000000000..174ce7af24dd97f09587c4eb9450fe661138ccda GIT binary patch literal 5474 zcmaJ_cRXAB-%spOT3Q`OrPNh3s2O4Uc`<&M~=eyqT_hF9z%U>uzTz29Th004R+EYg}_ZEOTV z<2)n0HCHp#5u?5 zKroyS2BaW;RSGR5D+^Lol$MoOP*jwa1j)(B%7JB$Z$&9td5D4{L{16x*Cljp&Byr` z1OeCi%hvG4{{ElBzQ{m428_V?;{1Hj$A!Bk{M!^B0`tK*5^z399M0qKESkCE2smF? z93BL-Py}7E!g@L50(`~(#2Xt!^u2ruj$UYtJ{&4^tRRiWIz!}@Wwo@lVApiy73E}Q zuPJH6WfZh!;5sTW6>YezJnU~S9EbMv#CQ?@<~skEtMjki->u+@Kei0V_+b4p&N@Cg zPtczsL$Lqu3+!L@{^C0SyD#v6<${l$0sk)S|0?v~TgTn=d-_k?9xwiBe2mv|xBDEo zb-Q9U3IO2xqz~6Z62C0ju@h09b@_RkL^z1aOfz3ZON35{<((mU^0KLMyJxayyJx@VR)s?HG6NkDrd$Zcrjy%WmqZ zuRCP3=#s*zC6ZxFAk}E??vzT7p=YX1*+~_9%VrXRk@)JY?TP#o_J9;ib$JnKSkDfQlq--IEG4e1u3~)*btyv+c0J=G9vrKZ&wXfV)^ZWB(KwA4=TA0QX=Uj;zJuP1plYE|Lm&2FJ?Dl$CQS_VMjD)L9(}c7E^IrwwkB zEGu&m=X|)r!Bd8H1v5s)FN@Czh=+7V!%8nn4f?kC3EK;FgW;`?_X$(dn3&1>@ey-V z9l-Jx{`{dy*yB_M?wbc4ma)a@KtFCyu$%WuU{MW25q*p-9xWBdxx)q6AZ8}@R|oqx zBVO)hTxEFsX|6P`?;Cws87E(ghNWW4*h)PTSkY&7x>9K7F5O7eZP3cZB zy=@ptUaL~owa*x!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'), t('company'), t('industry'), t('message'), - (req.headers.referer || '').slice(0, 500) || null, t('utm_source'), t('utm_medium'), t('utm_campaign')); + t('referrer'), t('utm_source'), t('utm_medium'), t('utm_campaign')); } catch (e) { console.error('lead insert failed:', e.message); return send(res, 500, { error: 'Could not save, please try again' }); diff --git a/server.test.js b/server.test.js index d66b1c6..2891d93 100644 --- a/server.test.js +++ b/server.test.js @@ -28,6 +28,7 @@ const valid = { industry: 'Hospitality', message: 'Need guest Wi-Fi for 120 rooms', utm_source: 'google', + referrer: 'https://www.google.com/', }; const post = (body) => @@ -58,7 +59,7 @@ test('valid lead is stored', async () => { assert.strictEqual(r[0].name, valid.name); assert.strictEqual(r[0].company, valid.company); assert.strictEqual(r[0].utm_source, 'google'); - assert.strictEqual(r[0].referrer, 'https://ads.example.com/'); + assert.strictEqual(r[0].referrer, 'https://www.google.com/'); assert.ok(r[0].created_at); });