detecting browser

18 views
Skip to first unread message

machine therapist

unread,
Feb 8, 2022, 5:21:50 PM2/8/22
to nw.js
hello, i am running a website with nw.js, and i wonder to know how can i block browser connections to my website. 

i tried catch it from nw variable but it doesnt works. thanks.

StarSync Trackers

unread,
Feb 9, 2022, 1:42:46 PM2/9/22
to nw.js
You can use user agent. You can do it in javascript or the webserver itself can do it with something like mod rewrite.

Add some custom string to the user agent in your manifest.

Reply all
Reply to author
Forward
0 new messages