NetTalk Central
Toggle navigation
Login
Register
×
Welcome,Guest
1 Hour
1 Day
1 Week
1 Month
Forever
Login with username, password and session length
NetTalk Central
»
NetTalk Web Server
»
Web Server - Ask For Help
»
Page name on error?
« previous
next »
Print
Pages: [
1
]
Author
Topic: Page name on error? (Read 5118 times)
Rhys Daniell
Newbie
Posts: 34
Page name on error?
«
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.
Logged
Bruce
Global Moderator
Hero Member
Posts: 11250
Re: Page name on error?
«
Reply #1 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
Logged
Print
Pages: [
1
]
« previous
next »
NetTalk Central
»
NetTalk Web Server
»
Web Server - Ask For Help
»
Page name on error?