S
Steven Burn
Basically, I am trying to get the following code working, and for the life
of me, I can't figure out where I've gone wrong.
<%
If Server.RequestVariables("HTTP_REFERER") =
"http://www.it-mate.co.uk/main_content/right.asp" Then
<!--#include file="banner.asp"-->
Else
Response.Write "This file does not support hotlinking"
End If
%>
I know it is probably something completely simple, and there's probably a
better way of doing this but, I'm half asleep, stressed to holy hell with my
Tiscali HamsterBand service etc.
Basically, all it is meant to do is allow the include tag if the page
calling it is on the server, and show the message if it is on another
server.
--
Regards
Steven Burn
Ur I.T. Mate Group
www.it-mate.co.uk
Keeping it FREE!
Disclaimer:
I know I'm probably wrong, I just like taking part ;o)
of me, I can't figure out where I've gone wrong.
<%
If Server.RequestVariables("HTTP_REFERER") =
"http://www.it-mate.co.uk/main_content/right.asp" Then
<!--#include file="banner.asp"-->
Else
Response.Write "This file does not support hotlinking"
End If
%>
I know it is probably something completely simple, and there's probably a
better way of doing this but, I'm half asleep, stressed to holy hell with my
Tiscali HamsterBand service etc.
Basically, all it is meant to do is allow the include tag if the page
calling it is on the server, and show the message if it is on another
server.
--
Regards
Steven Burn
Ur I.T. Mate Group
www.it-mate.co.uk
Keeping it FREE!
Disclaimer:
I know I'm probably wrong, I just like taking part ;o)