Re: PHP Passing Variables Between Pages and Security



btw, i use bind variables when i'm inputting fuser orm information into
my db (postgresql). adodb's db abstraction layer (very good, btw) has
a pretty nice implementation. using bind variables means you don't
have to escape everything prior to submission and sql injection becomes
a non issue. if it is bad data, it doesn't get submitted, as i
understand it.

i posted this in another reply, but i'm not sure you will read it.

is this spoofable (i do use apache)?

$host=apache_request_headers();
if(!eregi('domain.com',$host[Referer])){
// good submission, do something
}else{
//bad submission, don't do anything
}

.



Relevant Pages

  • Titchy admits defeat.
    ... actually admitting it by bowing out of the thread. ... Well done Maxwell, you have done what no one else has done and browbeaten him ... into submission. ... >BTW, enough is enough as far as I'm concerned. ...
    (soc.culture.thai)
  • Re: losing variable in CGI.pm redirect
    ... Are you using strict and warnings? ... Btw, the -method parameter makes no sense here, since this is not a form ... submission. ...
    (perl.beginners)
  • Re: USB: FIx locks and urb->status in adutux
    ... I added around the initialization and submission. ... I thought it can be managed under static lock. ... BTW, slab corruption issue that I saw on the original driver we started fixing on is not an issue any more. ...
    (Linux-Kernel)