![]() |
|
Welcome to the Computer Webmaster Gaming Console Graphics Forum forums. You are currently viewing our boards as a guest which gives you limited access to view most discussions and access our other features. By joining our free community you will have access to post topics, communicate privately with other members (PM), respond to polls, upload content and access many other special features. Registration is fast, simple and absolutely free so please, join our community today! If you have any problems with the registration process or your account login, please contact contact us. |
| |||||||
| PHP PHP for some can be one of the hardest website programming codes, so do you need help on your PHP script, if it is php4, php5 or lower this is the place for you for any PHP help. |
![]() |
| | LinkBack | Thread Tools | Display Modes |
| | #1 | ||
| any way of stopping people linking to pages on a site ? we have a problem with a site that has one of our pages linked in a frame, ie the page shows on their site with no credit, just to save them some work, preferably a php script that redirects their link to a "nice" page.... | |||
| Advertisements |
| | #2 | ||
| In article <MkP2b.16079$WZ5.11263@fe13.atl2.webusenet.com>, luna@moonbasealpha.com says... > any way of stopping people linking to pages on a site ? No. > we have a problem with a site that has one of our pages linked in a frame, > ie the page shows on their site with no credit, just to save them some work, > preferably a php script that redirects their link to a "nice" page.... Thats another matter - you can use javascript to break out of frames. -- ************************************** The Eldritch Dark: Dedicated to Clark Ashton Smith http://www.eldritchdark.com/ | |||
| | #3 | ||
| In article <MkP2b.16079$WZ5.11263@fe13.atl2.webusenet.com>, luna_s <luna@moonbasealpha.com> wrote: > any way of stopping people linking to pages on a site ? > we have a problem with a site that has one of our pages linked in a frame, > ie the page shows on their site with no credit, just to save them some work, > preferably a php script that redirects their link to a "nice" page.... You could write a script (or build it in using php) to dynamically update your website to use different file names. ie. your frame could use page12345.html one day, and then either manually change the name so often or automate it. This doesn't completely stop others from using your content, but it probably will if they have to update their links daily. | |||
| | #4 | ||
| "luna_s" <luna@moonbasealpha.com> wrote in message news:MkP2b.16079$WZ5.11263@fe13.atl2.webusenet.com ... > any way of stopping people linking to pages on a site ? > we have a problem with a site that has one of our pages linked in a frame, > ie the page shows on their site with no credit, just to save them some work, > preferably a php script that redirects their link to a "nice" page.... > You could try this javascript and take them to another page or other action. if (document.referrer&&document.referrer!="http://yoursite/linked.htm") document.write('Shame on you<BR>'); If you might link from other pages you need to change document.referrer!="http://yoursite/linked.htm" to (document.referrer!="http://yoursite/linked.htm"||document.referrer!="http:/ /yoursite/secondlinked.htm") | |||
| | #5 | ||
| luna_s wrote: > any way of stopping people linking to pages on a site ? > we have a problem with a site that has one of our pages linked in a > frame, ie the page shows on their site with no credit, just to save > them some work, preferably a php script that redirects their link to > a "nice" page.... you could do something with the $_REFERER server variable. If it is not from your site, then reject it (or do something else). | |||
| | #6 | ||
| In article <VmU2b.270478$Ho3.32797@sccrnsc03>, "dewright" <dewright23@hotmail.com> writes: >"luna_s" <luna@moonbasealpha.com> wrote in message >news:MkP2b.16079$WZ5.11263@fe13.atl2.webusenet.co m... >> any way of stopping people linking to pages on a site ? >> we have a problem with a site that has one of our pages linked in a frame, >> ie the page shows on their site with no credit, just to save them some >work, >> preferably a php script that redirects their link to a "nice" page.... >> >You could try this javascript and take them to another page or other action. >if (document.referrer&&document.referrer!="http://yoursite/linked.htm") > document.write('Shame on you >'); > >If you might link from other pages you need to change >document.referrer!="http://yoursite/linked.htm" to >(document.referrer!="http://yoursite/linked.htm"||document.referrer!="http:/ >/yoursite/secondlinked.htm") As the document.referrer in the browser is less reliable than it is on the server, and ~15% of browsers with it disabled, then it's not a very reliable way to stop it. It also prevents access to the page from Favorites. When the URL is typed in the location bar or loaded from Favorites, there is no document.referrer, if you add !="" to stop that, then you also stop it from being bookmarked and returned to later. -- Randy All code posted is dependent upon the viewing browser supporting the methods called, and Javascript being enabled. | |||
| | #7 | ||
| "Disco" <discooctopus@yahoo.com> wrote in message news:b3V2b.837$U74.49998@news.optus.net.au... > luna_s wrote: > > any way of stopping people linking to pages on a site ? > > we have a problem with a site that has one of our pages linked in a > > frame, ie the page shows on their site with no credit, just to save > > them some work, preferably a php script that redirects their link to > > a "nice" page.... > > you could do something with the $_REFERER server variable. If it is not > from your site, then reject it (or do something else). > heres an example, its downright rude to do this and they are also cheating on the affiliation scheme, http://www.gameboy-advance-roms.com/free_gba_roms.htm | |||
| | #8 | ||
| "Boyd Pearson" <boyd@dont.spam.me> schrieb im Newsbeitrag news:MPG.19b6a1b0bf8968f7989680@news.slingshot.co. nz... > > we have a problem with a site that has one of our pages linked in a frame, > > ie the page shows on their site with no credit, just to save them some work, > > preferably a php script that redirects their link to a "nice" page.... > > > Thats another matter - you can use javascript to break out of frames. <script type="text/javascript"> <!-- if(top != self) top.location.href="http://www.mysite.com"; // --> </script> If your content page resides in a frame in your site, you will have to change the syntax accordingly (find help on that in a javascript group). This opens your home page in the whole window which will quite annoy the linkers. Of course, if somebody places a "good" link to your content page their users will get annoyed, too, because they are pointed to a content of their interest and get the home page instead. So you could also say top.location.href=self.location.href to deliver the content page in the top frame instead of the home page. -- Markus | |||
| | #9 | ||
| Here's an idea: Say you want PageB only accessibly if accessed from PageA. Well, in PageA, set a session variable like $_SESSION["aok"] = 1; Then, in PageB, put an if statement at the top like this: <? if ($_SESSION["aok"] != 1) die ("You linked here from an unauthorized page"); ?> "luna_s" <luna@moonbasealpha.com> wrote in message news:MkP2b.16079$WZ5.11263@fe13.atl2.webusenet.com ... > any way of stopping people linking to pages on a site ? > we have a problem with a site that has one of our pages linked in a frame, > ie the page shows on their site with no credit, just to save them some work, > preferably a php script that redirects their link to a "nice" page.... > > > | |||
| Featured Websites | ||||
|
![]() |
| Tags: linking, pages, people, stop |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
| Display Modes | |
| |
Similar Threads | ||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| People Helping People?? My Foot!! | Your@email.com | Building An Internet Business | 0 | 05-29-2007 3:09 AM |
| People Helping People?? My Foot!! | online@email.com | Building An Internet Business | 0 | 05-29-2007 3:07 AM |
| People Helping People?? My Foot!! | online@email.com | Building An Internet Business | 0 | 05-29-2007 3:04 AM |
| People Helping People?? My Foot!! | Your@email.adr | Building An Internet Business | 0 | 05-29-2007 2:37 AM |
| 197 surefire customer service techniques for people with no people skills. | Advanced Web Technologies | Building An Internet Business | 0 | 05-29-2007 1:44 AM |
| Featured Websites | ||||
|