BannedIP Call
Description: Reads the ClientIP and checks against the IgnoreIPs table. Not sure what this is used for..

SQLCommand To Run:

@ClientIP:

This IP is banned:

False

Successfully Checked Blocked IP


ParseURL
Description: Reads the URL and parses it into the different data elements.
Full URL: 404;https://devsite.usf.edu:443/test-jessieg/ui-component-library/images/green-gradient.jpg
Protocol: https://
Domain: devsite.usf.edu

CleanQueryStr: devsite.usf.edu
CleanQueryStrVDFullTail:
Actual URL Entered by User: https://devsite.usf.edu/test-jessieg/ui-component-library/images/green-gradient.jpg

Not :80 (http)

IIS 404 Error Path (:443): /test-jessieg/ui-component-library/images/green-gradient.jpg
IIS 404 URL Start Position: 27

No QueryString Parameter Found

Find Campus from URL
SQL Command To Run: SELECT TOP(1) Name FROM dbo.Campus WHERE @Path LIKE '%' + Path + '%' AND IsActive=1 ORDER BY DispOrder
@Path: https://devsite.usf.edu/test-jessieg/ui-component-library/images/green-gradient.jpg
Campus: Tampa

Folder Count: 4
First Folder: test-jessieg

CleanQueryStr Value: https://devsite.usf.edu/test-jessieg/ui-component-library/images/green-gradient.jpg
CleanQueryStrFullTail Value: /test-jessieg/ui-component-library/images/green-gradient.jpg

Variables
GenericURL: /system-error/error.aspx
Campus: Tampa
Proto: https://
PassThru: False

CheckforBadSyntax Call
Description: Takes the QueryString and identifies if any of the blackList strings are found. If so, the user is auto-redirected to the Generic 404 Page.
What is being checked:
/test-jessieg/ui-component-library/images/green-gradient.jpg

QueryStrFix Scrub:

No Bad Syntax Found


CheckIgnoreURL Call
Description: Checks the URL against the IgnoreURL table, if a match is found the user will be directed straight to the 404 Page Not Found page and the URL will not be logged in ErrorPageLog.

SQLCommand To Run:

@Campus:

@URL:

URL is not ignored

RedirectGoLive Call -- File Level Redirects
Description: Check the File Redirects table for a matching file; if one exists return the redirect URL.
URL Full VD Tail: /test-jessieg/ui-component-library/images/green-gradient.jpg
URL Full: https://devsite.usf.edu/test-jessieg/ui-component-library/images/green-gradient.jpg
URL Full Minus Protocol: devsite.usf.edu/test-jessieg/ui-component-library/images/green-gradient.jpg

SQLCommand To Run:

@Campus:

@filepath:

No FilePath Match

No real URL in DB for FileRedirect.


DBSearchVD Call for Tampa
Description: Takes the search string, compares it to the URLNinja DB and returns the RedirectURL field. Also takes into consideration if the Expiration Date has arrived.
Checking Folder: 1 -- test-jessieg

SQLCommand To Run:

@Campus:

@BadVDName:

No Match

No real URL in DB.

DBReturnURLPath was empty... moving on!

Check for Multi Folder Redirect
Description: Check number of / in the URL, loop through each folder starting from last to check if the path exists.
Full Path: test-jessieg/ui-component-library/images/green-gradient.jpg
The path contains 3 /s

File Found in Folders
Skip because it is a file (green-gradient.jpg)

DBSearchVD Call for Tampa
Description: Takes the search string, compares it to the URLNinja DB and returns the RedirectURL field. Also takes into consideration if the Expiration Date has arrived.
Checking Folder: 3 -- test-jessieg/ui-component-library/images

SQLCommand To Run:

@Campus:

@BadVDName:

No Match

No real URL in DB.


DBSearchVD Call for Tampa
Description: Takes the search string, compares it to the URLNinja DB and returns the RedirectURL field. Also takes into consideration if the Expiration Date has arrived.
Checking Folder: 2 -- test-jessieg/ui-component-library

SQLCommand To Run:

@Campus:

@BadVDName:

No Match

No real URL in DB.


DBWriteBadURL Function Call
Description: Writes valid 404 Errors to the URLNinja DB.

SQLCommand To Run:

@BadAddr:

@ClientIP:

@Campus:

Successfully Inserted URL into the ErrorPageLog DB

Status of 404 Write: Success

RedirectURLPath Call
Description: Determine if the Redirect URL is Null or has a real URL
Null URL

GoURL Call
Description: Redirects the end user to the URL provided.
Final redirect path: /system-error/error.aspx

Would have done:

Function Returned - Real URL