Beefy Boxes and Bandwidth Generously Provided by pair Networks
good chemistry is complicated,
and a little bit messy -LW
 
PerlMonks  

Re^5: Sending a mail with Perl, nah.. the same and same question...

by MidLifeXis (Prior)
on Mar 29, 2012 at 13:38 UTC ( #962399=note: print w/ replies, xml ) Need Help??


in reply to Re^4: Sending a mail with Perl, nah.. the same and same question...
in thread Sending a mail with Perl, nah.. the same and same question...

Simple example, not necessarily related directly to your script.

Let's say that a password change interface verifies in javascript that the user's password is not blank. What is to stop me from turning off javascript, just issuing the HTTP call directly to your script and bypassing your javascript verification? If you do not check it on the server, you cannot be certain that the data is valid.

In short (as was said earlier), the checks on the server are the important ones. You cannot assume that anything on the client has run. The client needs to be considered completely outside of your control. Javascript is only a suggestion for the browser to run something :-). A telnet client (or netcat, or curl, or...) is all that one needs to reach out and touch your server. The checks on the client side should only be used to improve the user experience.

--MidLifeXis


Comment on Re^5: Sending a mail with Perl, nah.. the same and same question...

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://962399]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others lurking in the Monastery: (7)
As of 2014-09-19 09:20 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    How do you remember the number of days in each month?











    Results (133 votes), past polls