NetTalk Central

NetTalk Web Server => Web Server - Ask For Help => Topic started by: Rhys Daniell on August 01, 2007, 04:58:24 PM

Title: Page name on error?
Post by: Rhys Daniell on August 01, 2007, 04:58:24 PM
Is there a method/function which can return the current page name in the WebServer MakeErrorPage proc? I'm getting an error 404 (page not found) and have no idea what the page name is.
Title: Re: Page name on error?
Post by: Bruce on August 01, 2007, 10:56:08 PM
Hi Rhys,

The best way to see what's being requested is to look at the Web Server window itself.

You can create your own Error window if you like (including extra information) - see the example ErrorPage (32).

However displaying the name of the Page that triggered the error is strongly discouraged. If you include the name then people can "spoof" your site using a technique called cross-site scripting. See here (http://en.wikipedia.org/wiki/Cross_site_scripting) for more details on that.

Cheers
Bruce