Tom's Guide | Tom's Hardware | Tom's Games
![]() |
![]() |
![]() |
Hi, what i want to do is enable custom error pages to all the clients from a "server" computer which has a software proxy.
(Pls. dont confuse with custom error pages on web servers)
I want all my clients which connects through the proxy to get a custom Error 404 page (which i have on the server) whenever they encounter an unavailable url.
So instead of having IE launching search.msn.... when there's no such website, it will display the custom HTML that i have on the server.
I have seen an organization uses this through Jana Server, a free proxy program.
But I don't have any idea as to how this is done, now that i have the software installed.I hope my details r clear.
Hope someone can help out. Thanks~

Your proxy needs to intercept HTTP status code headers. If it has filtering capabilities then this is no problem (most proxies do, always check the documentation). The status code is the first line of the header.
Example of an OK message:
HTTP/1.1 200 OK
Date: Day, day Month Year Servertime
Server: server (build platform) Server extentions etc.
Connection: Keep-Alive
Content-Type: text/htmlError messages will only differ in two places:
HTTP/1.1 200 OK would be
HTTP/1.1 404 Not Found and Connection: Keep-Alive would be Connection: close.Headers, you should know, are entirely up to the server. They can contain false data very easily. Also, regular 404 pages (as generated by your browser in the absence of any page sent by the server) are more rare. Dynamic content systems like PHP, ASP, JSP, CFML, etc. usually redirect the user to a page to display the error. This isn't really a 404 then, but rather a 200 because the script directs the server to return a page. Custom error messages usually do not do this, but scripting pages routinely do make a simple redirect. Depends on where the redirect is happening - the server (404) or the script (200, unless specified otherwise). So filtering solely by 404 will not work all the time.

I see now.
There is this section on Jana to insert filter modules under the HTTP Server config.
The section is "Filter Modules (ISAPI) for the HTTP-server".
There is a text area to insert some commands and "add".I have no idea on ISAPI or anything like that, so if you could point me somewhere i can start, tat would be great.
Btw, it also says Jana supports PHP, CGI, Perl and so on.
When look into one of Jana's program folders called Messages, there r different html titled BadRequest, Forbidden, logon, NoPermit, NotAllowed, etc.
I think if this is where there is already built in features, then i just have to enable it somewhere to take effect. Any ideas?Thanks again.

"I have no idea on ISAPI..."
Internet Server API - it's for extensions to webservers. In this case, you can insert a module for filtering. Unfortunately this module needs to be compiled into a DLL. ISAPI is older technology which has more or less been surpassed by scripting languages like ASP and PHP. For your purposes ISAPI support is not what you want because it's not considered easy to use. There's ISAPI information here.
Other than using ISAPI, which has a relatively high entry barrier, there doesn't seem to be a better option with this proxy. An alternative is to simply disable MSN searching in IE or use a browser like Firefox.

![]() |
cant start iis
|
php copy from file script
|

This post is quite old and has been locked from receiving new replies. Please create a new posting instead.
| Ads by Google |