is there anyway to detect whether a page has been hit directly or through a referral using htaccess? if not, any other ways?
i would need to check on any file type (images, zip, html, etc.).
hopefully i would like to perform the check, and in cases of referrals, redirect to another page.
thanks
dwight
htaccess detecting direct visit or referral
Moderator: General Moderators
-
dwighttttt
- Forum Newbie
- Posts: 2
- Joined: Wed Nov 22, 2006 4:39 pm
- John Cartwright
- Site Admin
- Posts: 11470
- Joined: Tue Dec 23, 2003 2:10 am
- Location: Toronto
- Contact:
How do you determine what a referal is? Do you provide them with a link?
http://yoursite.com/?refid=432, and detecting whether or not refid is set typically how it is done. Using this method you could use htaccess with a rewrite rule to capture the request.
http://yoursite.com/?refid=432, and detecting whether or not refid is set typically how it is done. Using this method you could use htaccess with a rewrite rule to capture the request.