Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations bkrike on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Ensuring CGI is run from server, not locally

Status
Not open for further replies.

Orim

Technical User
Aug 22, 2002
14
BG
I'm putting the finishing touches on a project i'm quite proud of so far.

I want to ensure, though, that nobody can mess up the appearance or opeation of my scripts. This is a multi-user program, and the way it's configured screens out the possibility of anyone entering bad data.

EXCEPT:

It's entirely feasible that somebody could "View Source" then edit the HTML, then run it locally, allowing them to enter whatever they like. I don't have any CGI blockers in place to prevent this, I rely on the form itself to restrict the data for the most part.

I'm sure there's GOT to be a way to check that my script is being run FROM the server, thus ensuring the validity of the code (I know, unless someone gets into it, but that's a risk I'm willing to take.)

My concern is just that people don't edit the HTML locally, and then have the botched file transmit the data to the server. I am not interested in coding CGI restrictions for the data itself due to the wide variety of content I want to accept.

Thanks, I appreciate it.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top