Article View: borland.public.cppbuilder.internet.socket
Article #4677Re: Allowing access to web scripts only from app
From: roger
Date: Fri, 31 Dec 2004 11:02
Date: Fri, 31 Dec 2004 11:02
30 lines
1911 bytes
1911 bytes
thanks "Hans Galema" <notused@notused.nl> wrote in message news:41d52c12$1@newsgroups.borland.com... > roger wrote: > > I am using ICS http components to access scripts on my site and need to know > > if there is anything i can send as additional infomation or in a modified > > header etc to make the php scripts i am using refuse access to these scripts > > if the requests are not posted from my application. > > ie prevent browser access etc. > > Your php script could examine environment variable HTTP_USER_AGENT, > This contains the used browsername. > > Your http client should fill in HTTP_USER_AGENT before doing a get or > post. > > > Thanks in advance... > > ??? > > > P.S.. if this is not the correct NG for this question please advise the > > correct one.. > > borland.public.cppbuilder.internet.web ? > > Hans.
Technical Details
Message-ID:
<41d531c5$1@newsgroups.borland.com>Path:
arc1-ca.pugleaf.net!g2news1.google.com!news2.google.com!proxad.net!213.200.89.82.MISMATCH!tiscali!newsfeed1.ip.tiscali.net!border2.nntp.ams.giganews.com!border1.nntp.ams.giganews.com!nntp.giganews.com!pe2.news.blueyonder.co.uk!blueyonder!news-peer-test!btnet!newsfeed.bt.es!caladan.landsraad.net!newsgroups.borland.com!not-for-mailReferences:
<41d51d2f@newsgroups.borland.com> <41d52c12$1@newsgroups.borland.com>Show Full Headers
Complete Article Headers
X-Google-Thread: 11508e,cf98aa7921cdef34 X-Google-Attributes: gid11508e,public X-Google-Language: ENGLISH,ASCII-7-bit From: "roger" <rogersmail@ntlworld.com> Newsgroups: borland.public.cppbuilder.internet.socket References: <41d51d2f@newsgroups.borland.com> <41d52c12$1@newsgroups.borland.com> Subject: Re: Allowing access to web scripts only from app Date: Fri, 31 Dec 2004 11:02:50 -0000 Lines: 32 X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2720.3000 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2739.300 NNTP-Posting-Host: 81.103.69.122 Message-ID: <41d531c5$1@newsgroups.borland.com> X-Trace: newsgroups.borland.com 1104490949 81.103.69.122 (31 Dec 2004 03:02:29 -0800) Path: arc1-ca.pugleaf.net!g2news1.google.com!news2.google.com!proxad.net!213.200.89.82.MISMATCH!tiscali!newsfeed1.ip.tiscali.net!border2.nntp.ams.giganews.com!border1.nntp.ams.giganews.com!nntp.giganews.com!pe2.news.blueyonder.co.uk!blueyonder!news-peer-test!btnet!newsfeed.bt.es!caladan.landsraad.net!newsgroups.borland.com!not-for-mail