rebelfan, put in a
response.write referer
line after the referer = GetHost(Request.ServerVariables("HTTP_REFERER"))
so that you can test to see what is coming through.
The HTTP_REFERER CAN be blocked from clientside so that it does not pass to the web server or a false value can be sent. So, you may not be able to use the referer validation code effectively.
Since you said you get "No referer" messages that means according to the above code that the referer value is blank.
You need to consider why the referer authentication check is there and if you need it. If not, you can remove that whole section of code.
It would appear that a list of valid referers is maintained and compared to, to prevent someone from getting to this from an unauthorized source. You need to determine if that is truly an issue for you and if you decide to bypass the referer code then look at what potential security issues you might need to consider addressing differently.
Good luck.