UBB.Dev
Posted By: Lionel proper syntax - 04/17/2001 6:12 AM
please, what is the proper syntax to include the full URL in the code below, as in http://www.mysite.com/cgi-bin/folder/logon.cgi

if ($ENV{HTTP_REFERER} =~ /logon.cgi/){

Thank you.
Posted By: Dave_L Re: proper syntax - 04/17/2001 2:40 PM
Code
code:

or

Code
code:

If you really want to check that the referer is that exact URL, you could just do this:

Code
code:

Hmmmm, I'm not sure if a case-insensitive compare is needed. If so, you could use the lc() function on $ENV{HTTP_REFERER}, or add the 'i' modifier to the regex.
Posted By: Lionel Re: proper syntax - 04/17/2001 4:35 PM
thank you
© UBB.Developers