in reply to Re^2: A question about web service security
in thread A question about web service security

No way? Uhm, that very much depends on your definition of "your system". And HTTP may be stateless, TCP certainly isn't (not that statelessness matters). In the simplest case, you have a network like this:
^-^-^-^-^-^-^ ^-^-^- +^-^-^-^ +-------------+ / \ +-----------------+ / + \ | Your server |===< Local network >===| Router/Firewall |===< Big Ba +d World > +-------------+ \ / +-----------------+ \ + / v-v-v-v-v-v-v v-v-v- +v-v-v-v
So, treat a request coming from your local network as "your system", and if it comes via the "Router/Firewall", it comes from somewhere else. And you block it. Preferably at said Router/Firewall.

Now, your details may be different, but your problem seems more a networking (and in particular, a firewall configuration problem) to me, than a Perl issue.

Replies are listed 'Best First'.
Re^4: A question about web service security
by PerlOnTheWay (Monk) on Aug 05, 2011 at 14:01 UTC
    Please think about it in web game context,where everything is happening in browser,and everything can be modified.
      Please think about it in web game context,where everything is happening in browser,and everything can be modified.
      Eh, what do you mean by that? In this context, what are "your system", and your "web service"? Are both "your system" and your "web service" also running inside the same browser? Is your browser written in Perl?

      Please think about it in web game context,where everything is happening in browser,and everything can be modified.

      Then you're back to challenge response