Re: Checking referrer?
| From: | Chris Shiflett | Date: | Sat, 15 Jun 2002 05:03:02 +0000 |
| Subject: | Re: Checking referrer? | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-102314@lists.php.net to get a copy of this message | ||
This depends on what you mean by "right," of course, but remember that the referer (sic) is just a string. You can use any string manupulation functions to help you test your string, such as searching for substrings, matching patterns with regular expressions, etc.
If you need more specific advice, you'll need to give some examples.
Chris
Leif K-Brooks wrote:
I'm trying to make sure the referer is right on certain pages. I know the variable and everything, but it gets annoying to have to check wth www., without www., with urlencode(), and with rawurlencode(). If there an easier way?