Re: URL filtering using LSP



Ideally you should be returning a 403 Forbidden HTTP reponse
instead of closing the socket. This will let the browser properly
display a page with the Forbidden message. You can return an
HTML page with 403 and the browser will display it.

--
=====================================
Alexander Nickolov
Microsoft MVP [VC], MCSD
email: agnickolov@xxxxxxxx
MVP VC FAQ: http://vcfaq.mvps.org
=====================================

<andy.y.huang@xxxxxxxxx> wrote in message
news:1190921236.771571.193040@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
Hi,

I am trying to do outbound URL filtering using LSP, basically I
check outbound HTTP request from WSPSend and if I find the URL that
needs to be blocked, then I call WSPCloseSocket and return the error
code from that call, that works fine with Firefox, but for IE, it
will display "Internet Explorer cannot display the webpage". Is it
possible not showing this page after blocking and still shows the
previous page?
Anything I should change in the code, such as return different error
code, set
lpErrno parameter to specific Winsock error code? TIA.



.



Relevant Pages

  • Re: Word 2000: little black square, cursor disappears, block stops, rogue linefeeds...
    ... on the display only and don't permanently alter the file. ... I suspect that this is a display issue. ... Microsoft MVP (Word) ... An example of the reason for my caution about software is yesterday I ...
    (microsoft.public.word.newusers)
  • Re: Trouble With Document in Word 2003 Under WinXP Pro
    ... so you can see them if you display Hidden text. ... >> Suzanne S. Barnhill ... >> Microsoft MVP ... >>> problem down to the presence of Index entries in the documents' bodies. ...
    (microsoft.public.word.application.errors)
  • Re: Help with web page links in word created web pages
    ... "Dave" wrote in message ... > "Suzanne S. Barnhill" wrote: ... >> Microsoft MVP ... >> and I would like my web page to display the images and not make a link ...
    (microsoft.public.word.docmanagement)
  • Re: Printing Comments
    ... then display the other comments and print. ... please post all follow-ups to the newsgroup so ... >> Microsoft MVP ... >>> Different reviewers appear in different colors. ...
    (microsoft.public.word.newusers)
  • Re: quick styles in word 2007
    ... Microsoft MVP (Word) ... "Commands Not in the Ribbon" and locate the Style command (the screen ... Click the Add button to display it on the ... To modify a style: Right-click its name in the Styles pane (or in the ...
    (microsoft.public.word.newusers)