Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7591487
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 30, 20262026-05-30T20:39:44+00:00 2026-05-30T20:39:44+00:00

Using Socket.IO, clients are notified when other clients perform certain activities, through a JavaScript

  • 0

Using Socket.IO, clients are notified when other clients perform certain activities, through a JavaScript call to the Socket.IO server.

That message is broadcast to all clients, and client-side logic decides who sees the notification. (Another option for this is to maintain a collection of related clients on the server, and only send() to those clients – better?).

How would the system be built in order to prevent someone from hijacking the code and sending repeated notifications to the server? (some kind of tokenized send?) Simply using the session ID would not be sufficient, as someone could legitimately login, then use that session to try to bring the system down.

Rather than using JavaScript for this (avoiding the client-side hijacking possibility), another approach may be to use SignalR to send out the notifications from a code-behind scenario. Still researching this one, but some discussion/suggestions are welcome.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-30T20:39:45+00:00Added an answer on May 30, 2026 at 8:39 pm

    It is the one and only way to send messages only to those users that are allowed to read the message. If you don’t do this, then absolutely nothing can guarantee you that this message won’t be read buy a hacker.

    As for the second question: what you are saying is that you want to protect against the DoS attack? Generally there is no solution for this. One thing you can do is to make server monitor what a given user emits and disconnect the user if he misbehaves (whatever that means 🙂 ).

    And what does client-side hijacking have to do with changing JavaScript to something else? If you send data to the client and then the client sends it back, then using JavaScript or not makes no difference for the hacker.

    That’s my advice for you.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have Client/Server System (using Socket) with multiple clients and single server, which is
Hey gang. I have just written a client and server in C++ using sys/socket.
I implemented a TCP Client using a thread opening a socket to a server
Using UNIX socket APIs on Linux, is there any way to guarantee that I
Here's my problem: I have server A, running node.js and using socket.io for communicating
I am in the process of writing a TCP server using Berkely SOCKET API
I'm developing an Asynchronous Game Server using .Net Socket Asynchronous Model( BeginAccept/EndAccept...etc.) The problem
I am using boost::asio::ip::udp::socket to communicate. I use socket.receive_from(...) to receive messages from clients.
I'm using NodeJS to run a socket server (using socket.io). When a client connects,
I have a server application and a client application. I'm using socket to communicate

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.