|
-
Nov 26th, 2002, 12:34 PM
#1
Thread Starter
Hyperactive Member
checking
I looked in the PHP manual but I could not find anything about checking to see if you reached a page from a certain url.
if it is in the manual then I don't know what to look under.
I there any way to check if a page has been visited from a specific URL.
i.e.
if url = "http://someurl.com/thispage.php
then
some output
else
"You reached this page illeagaly please go back"
[VBCODE]
Option Explicit
Dim XXX As Porn
Dim Wife As Nag
Private Sub *****_Resize()
On Error Resume Next
Get Viagra
End Sub
[/VBCODE]
-
Nov 26th, 2002, 01:33 PM
#2
Stuck in the 80s
Code:
if ($_SERVER['HTTP_REFERER'] == 'http://someurl.com/thispage.php') {
}
But, as the manual says:
The address of the page (if any) which referred the user agent to the current page. This is set by the user agent. Not all user agents will set this, and some provide the ability to modify HTTP_REFERER as a feature. In short, it cannot really be trusted.
And no. There is no alternative.
-
Nov 28th, 2002, 10:40 AM
#3
New Member
Also u can read good manual from php.net - they have one at PDF format
Sincerely,
Sergey Booyny
AlarIT programmer
http://www.AlarIT.com
-
Nov 28th, 2002, 05:26 PM
#4
Stuck in the 80s
Originally posted by serg4444
Also u can read good manual from php.net - they have one at PDF format
Sincerely,
Sergey Booyny
AlarIT programmer
http://www.AlarIT.com
...
-
Nov 29th, 2002, 09:08 AM
#5
Conquistador
i've seen him post that a few times now..
-
Nov 29th, 2002, 09:34 AM
#6
Stuck in the 80s
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|