Article View: borland.public.cppbuilder.internet.socket
Article #4676Re: Allowing access to web scripts only from app
From: Hans Galema
Date: Fri, 31 Dec 2004 10:37
Date: Fri, 31 Dec 2004 10:37
23 lines
1676 bytes
1676 bytes
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:
<41d52c12$1@newsgroups.borland.com>Path:
arc1-ca.pugleaf.net!g2news1.google.com!news1.google.com!proxad.net!gatel-ffm!gatel-ffm!194.25.134.126.MISMATCH!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mailReferences:
<41d51d2f@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 Date: Fri, 31 Dec 2004 11:37:29 +0100 From: Hans Galema <notused@notused.nl> User-Agent: Mozilla Thunderbird 1.0 (Windows/20041206) X-Accept-Language: en-us, en MIME-Version: 1.0 Newsgroups: borland.public.cppbuilder.internet.socket Subject: Re: Allowing access to web scripts only from app References: <41d51d2f@newsgroups.borland.com> In-Reply-To: <41d51d2f@newsgroups.borland.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit NNTP-Posting-Host: 129.125.201.248 Message-ID: <41d52c12$1@newsgroups.borland.com> X-Trace: newsgroups.borland.com 1104489490 129.125.201.248 (31 Dec 2004 02:38:10 -0800) Lines: 23 Path: arc1-ca.pugleaf.net!g2news1.google.com!news1.google.com!proxad.net!gatel-ffm!gatel-ffm!194.25.134.126.MISMATCH!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail