|
|
|
Exit Site script ?
|
Original Message
|
Name: Village Idiot
Date: March 12, 2005 at 12:31:14 Pacific
Subject: Exit Site script ?OS: win XP HomeCPU/Ram: P4 2.4ghz 512 ram |
Comment: I want to write an "exit site" script so if they get to my warning page and they want to exit my site verse entering my site that it will take them to a prviously viewed site. I'm thinking a java script. History (-1) or something like that. Right now I have it hard linked to Google. I'm thinking that may hurt me when the spiders crawl my site. Any help is appreciated Nothing is Fool Proof, for a sufficiently talented Fool...
Report Offensive Message For Removal
|
|
Response Number 1
|
Name: Laler
Date: March 12, 2005 at 12:43:50 Pacific
Subject: Exit Site script ? |
Reply: (edit)how about this code (PHP) on top of every page on your site: session_start (); if (!isset ($_SESSION['coming_from'])){ $_SESSION['coming_from'] = $_SERVER['HTTP_REFERER']; } now that session contains address for the exit link. --- Site of the Day
Report Offensive Follow Up For Removal
|
|
Response Number 2
|
Name: Laler
Date: March 12, 2005 at 12:49:27 Pacific
Subject: Exit Site script ? |
Reply: (edit)actually when you visit my homepage (contact) above, there's a similar script with that one :D I add some code to determine if there's no referrer (direct access) or bad referrer (result of weird browsers). Also fetching the domain from http_referrer (by using parse_url();) to show on the page. --- Site of the Day
Report Offensive Follow Up For Removal
|
|
Response Number 3
|
Name: Dr. Nick
Date: March 12, 2005 at 16:21:42 Pacific
Subject: Exit Site script ? |
Reply: (edit)I'm not sure what your site consists of, but perhaps if you make your warning page a level deeper than your main index page you could just return them to that page. For example, at yourpage.com, have an index page telling about your site and linking to all the content you offer, including a link to your warning about naughty bits or whatever. On the warning page, if they click the "don't enter" link it returns them back to your main index page. This way they stay at your site, which is usually desired. I personally don't think hardlinking it to Google will hurt anything. All it will see is that you link to Google along with thousands of other websites. I think the only result will be that Google's ranking may go up even higher :)
Report Offensive Follow Up For Removal
|
|
Response Number 4
|
Name: Dave02
Date: March 12, 2005 at 22:16:05 Pacific
Subject: Exit Site script ? |
Reply: (edit)Hiya folks. Thanks for the help. I don't do PHP yet. I haven't taken the time to learn it. I'll get around to it though. I don't like to use code that I don't fully understand. I know javascript, html, and css, and pearl. I'd prefer to stick with what I know for now. LOL. As for retaining traffic that comes to my site. If they are underage or easily offended. I don't want to retain them. I want them to go away. Once they enter my site. I have plenty to keep them interested and coming back for more. If you know what I mean. My warning page can be found here I think all questions will be answered about what kind of website I have. As for the exit script. I guess I just figure that one out on my own. Thanks
Report Offensive Follow Up For Removal
|
|
Response Number 5
|
Name: Dr. Nick
Date: March 12, 2005 at 22:50:42 Pacific
Subject: Exit Site script ? |
Reply: (edit)Personally, if I had a site like that, I would probably just link to Google for my "go away" link. Still don't see any harm in it.
Report Offensive Follow Up For Removal
|
|
Response Number 6
|
Name: Sci-Guy
Date: March 13, 2005 at 07:53:08 Pacific
Subject: Exit Site script ? |
Reply: (edit)Just what the internet needs, another porn site. Please let us know if you found someone's advice to be helpful.
Report Offensive Follow Up For Removal
|
Use following form to reply to current message:
|
|

|