Important Notice: Our web hosting provider recently started charging us for additional visits, which was unexpected. In response, we're seeking donations. Depending on the situation, we may explore different monetization options for our Community and Expert Contributors. It's crucial to provide more returns for their expertise and offer more Expert Validated Answers or AI Validated Answers. Learn more about our hosting issue here.

People can only use scripts if they e accessed from a form that lives on my local system, right?

0
10 Posted

People can only use scripts if they
e accessed from a form that lives on my local system, right?

0

Not right. Although you can restrict access to a script to certain IP addresses or to user name/password combinations, you can’t control how the script is invoked. A script can be invoked from any form, anywhere in the world. Or its form interface can be bypassed entirely and the script invoked by directly requesting its URL. Don’t assume that a script will always be invoked from the form you wrote to go with it. Anticipate that some parameters will be missing or won’t have the expected values. When restricting access to a script, remember to put the restrictions on the _script_ as well as any HTML forms that access it. It’s easiest to remember this when the script is of the kind that generates its own form on the fly.

Related Questions

What is your question?

*Sadly, we had to bring back ads too. Hopefully more targeted.