Notices
Computer & Technology Related Post here for help and discussion of computing and related technology. Internet, TVs, phones, consoles, computers, tablets and any other gadgets.

Redirection software?

Thread Tools
 
Search this Thread
 
Old Sep 12, 2002 | 10:45 AM
  #1  
stevencotton's Avatar
stevencotton
Thread Starter
Scooby Regular
 
Joined: Jan 2001
Posts: 2,710
Likes: 1
From: behind twin turbos
Post

Using HTTP_REFERER is unreliable since it's client dependent, nothing to do with the webserver you're using, the web browser sends that header and at least with Opera there's an option to turn it off, bypassing whatever you put in place.

[edit]
Well, they wont bypass it by turning it off but you can just set it to whatever you like, thus bypassing anything you put on, I mean

Steve.


[Edited by stevencotton - 12/9/2002 10:51:05 AM]
Reply
Old Sep 12, 2002 | 06:07 PM
  #2  
snowcrash's Avatar
snowcrash
Scooby Regular
 
Joined: Mar 2002
Posts: 2,082
Likes: 0
From: www.scoobyzone.co.uk
Post

yeah buts it's going to get 99.9% of people visiting his site..

unless you start playing with cookies.. which is easy as well really

[Edited by snowcrash - 12/9/2002 6:08:18 PM]
Reply
Old Dec 6, 2002 | 05:54 PM
  #3  
Fig's Avatar
Fig
Scooby Regular
 
Joined: Aug 2002
Posts: 5,806
Likes: 0
From: not forgetting 20,000 posts from last time ;)
Post

I'm looking for a piece of software, or info on how I can ensure that visitors to a webpage always come in via the front door of the site, rather than directly to a sub-page. (Using Scoobynet as an example, I want to ensure that all visitors go to the main index page rather than going directly to a forum/thread etc.)

Any clues/guidance please?
Reply
Old Dec 6, 2002 | 05:59 PM
  #4  
ids's Avatar
ids
Scooby Regular
 
Joined: May 1999
Posts: 424
Likes: 0
Post

You could check the HTTP Referer (depends on your web server and coding) at the top of each page (as an include in ASP) and make sure they have come from the / home page. If not redirect em. Or you could use a some start session logic (in Global.asa in ASP/IIS) ... Theres loads of ways, but no software as such.

if its ASP then its a peice of pi55. Same for PHP or CF or JSP I guess.

Ids
Reply
Old Dec 7, 2002 | 12:26 PM
  #5  
Fig's Avatar
Fig
Scooby Regular
 
Joined: Aug 2002
Posts: 5,806
Likes: 0
From: not forgetting 20,000 posts from last time ;)
Post

Am I right in saying that using the referrer method, users would be forced back to Page 1 every time they wanted to move to a different page? If so this will not do what I want - and after re-reading my original post think I didn't explain very well.

I would like to make users come in through the front door at the beginning of a session. Once they have visited page one, they would then be free to hop about the site to their hearts content without revisiting the portal unless they wanted to. Next time they visited a new session starts, and the enforced routing via the portal returns.

In a nutshell, I need them to visit the portal once per session, where important info will be displayed.

Thanks
Reply
Old Dec 7, 2002 | 02:31 PM
  #6  
snowcrash's Avatar
snowcrash
Scooby Regular
 
Joined: Mar 2002
Posts: 2,082
Likes: 0
From: www.scoobyzone.co.uk
Post

no, with the referer method one of the ways you would code it is:

if referer equals "http://www.myhomepage.com" then
display sub page
else
display front door (or redirect)
end if

Reply
Old Dec 7, 2002 | 02:55 PM
  #7  
Fig's Avatar
Fig
Scooby Regular
 
Joined: Aug 2002
Posts: 5,806
Likes: 0
From: not forgetting 20,000 posts from last time ;)
Post

OK, but after visiting myhomepage.com and clicking the link to myhomepage.com/anotherpage, can they then click a link to myhomepage.com/someotherpage without being redirected back to myhomepage.com?
Reply
Old Dec 8, 2002 | 05:14 PM
  #8  
snowcrash's Avatar
snowcrash
Scooby Regular
 
Joined: Mar 2002
Posts: 2,082
Likes: 0
From: www.scoobyzone.co.uk
Post

yes - as you only ever get it to check that "http://www.myhomepage.com/" exists in the url not what comes after it..
Reply
Old Dec 8, 2002 | 09:13 PM
  #9  
Fig's Avatar
Fig
Scooby Regular
 
Joined: Aug 2002
Posts: 5,806
Likes: 0
From: not forgetting 20,000 posts from last time ;)
Post

thanks
Reply
Related Topics
Thread
Thread Starter
Forum
Replies
Last Post
hardcoreimpreza
Computer & Technology Related
21
Oct 11, 2015 03:40 PM
Brzoza
Engine Management and ECU Remapping
1
Oct 2, 2015 05:26 PM
BlkKnight
Non Scooby Related
104
Oct 1, 2015 09:40 PM
Wurzel
Computer & Technology Related
10
Sep 28, 2015 12:28 PM
JackClark
Computer & Technology Related
5
Sep 22, 2015 12:28 PM




All times are GMT +1. The time now is 01:35 PM.