How to prevent including the same page in nested pages classic ASP?
I have to include a page to every page except itself. This page is for XSRF protection. However, some of these pages are also included开发者_JAVA技巧 in other pages, as a result, redefinition of functions and variables.
Is there a way to check this so that for every rendered page, only one is included? It must be included in every page so that if an attacker uses the URL directly, it won't be vulnerable to that attack.
maybe this helps?
This class allows you to dynamic include a file into your script.
alternativley have a look here: Implementing lazy-loaded modules in VBScript (stackoverflow)
精彩评论