homepage Welcome to WebmasterWorld Guest from 54.234.74.85
register, free tools, login, search, pro membership, help, library, announcements, recent posts, open posts,
Become a Pro Member

Home / Forums Index / Code, Content, and Presentation / Content Management
Forum Library, Charter, Moderators: ergophobe

Content Management Forum

    
Prevent direct linking to print-friendly pages?
Some sites link directly to our print pages which have little to no ads.
glitterkill




msg:3513154
 8:44 pm on Nov 25, 2007 (gmt 0)

OK. Here is what I am trying to do. I want people who surf directly to our printer-friendly version of our pages to be forwarded to the regular version of that article if they are coming from a domain other than mine. Here is an example:

I want this URL: http://example.com/page.php?page=print

To forward to this URL when directly accessed from a different domain: http://example.com/page.php

I want to only allow viewing the print url when you come from ONLY the hosting domain.

What would be the best way to do this?

[edited by: tedster at 8:52 am (utc) on Nov. 26, 2007]
[edit reason] switch to example.com [/edit]

 

Global Options:
 top home search open messages active posts  
 

Home / Forums Index / Code, Content, and Presentation / Content Management
rss feed

All trademarks and copyrights held by respective owners. Member comments are owned by the poster.
Home ¦ Free Tools ¦ Terms of Service ¦ Privacy Policy ¦ Report Problem ¦ About ¦ Library ¦ Newsletter
WebmasterWorld is a Developer Shed Community owned by Jim Boykin.
© Webmaster World 1996-2014 all rights reserved