Computer Webmaster Gaming Console Graphics Forum

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.

MK PitStop Main Earn $25 Earn Money Posting Extras Members Blogs Image Hosting User Pages
Go Back   Computer Webmaster Gaming Console Graphics Forum > Webmaster Forum > Website Coding > PHP
Register FAQ/Rules Become A V.I.P. Member Search Today's Posts Mark Forums Read

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.

Google
Closed Thread
 
LinkBack Thread Tools Display Modes
Old 07-01-2007, 5:27 PM   #1
luna_s
 
luna_s's Avatar
 
Posts: n/a
My Photos: (0)

Banked:
MK Cash: $

I am Worth:
MK Cash: $
Donate

Recent Blog: None

Default stop people linking to pages

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....



 
Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit!
Advertisements
Old 07-01-2007, 5:27 PM   #2
Boyd Pearson
 
Boyd Pearson's Avatar
 
Posts: n/a
My Photos: (0)

Banked:
MK Cash: $

I am Worth:
MK Cash: $
Donate

Recent Blog: None

Default stop people linking to pages

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/
 
Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit!
Old 07-01-2007, 5:27 PM   #3
E-Star
 
E-Star's Avatar
 
Posts: n/a
My Photos: (0)

Banked:
MK Cash: $

I am Worth:
MK Cash: $
Donate

Recent Blog: None

Default stop people linking to pages

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.
 
Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit!
Old 07-01-2007, 5:27 PM   #4
dewright
 
dewright's Avatar
 
Posts: n/a
My Photos: (0)

Banked:
MK Cash: $

I am Worth:
MK Cash: $
Donate

Recent Blog: None

Default stop people linking to pages

"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")


 
Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit!
Old 07-01-2007, 5:27 PM   #5
Disco
 
Disco's Avatar
 
Posts: n/a
My Photos: (0)

Banked:
MK Cash: $

I am Worth:
MK Cash: $
Donate

Recent Blog: None

Default stop people linking to pages

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).



 
Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit!
Old 07-01-2007, 5:27 PM   #6
HikksNotAtHome
 
HikksNotAtHome's Avatar
 
Posts: n/a
My Photos: (0)

Banked:
MK Cash: $

I am Worth:
MK Cash: $
Donate

Recent Blog: None

Default stop people linking to pages

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.
 
Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit!
Old 07-01-2007, 5:27 PM   #7
luna_s
 
luna_s's Avatar
 
Posts: n/a
My Photos: (0)

Banked:
MK Cash: $

I am Worth:
MK Cash: $
Donate

Recent Blog: None

Default stop people linking to pages


"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



 
Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit!
Old 07-01-2007, 5:27 PM   #8
Markus Ernst
 
Markus Ernst's Avatar
 
Posts: n/a
My Photos: (0)

Banked:
MK Cash: $

I am Worth:
MK Cash: $
Donate

Recent Blog: None

Default stop people linking to pages

"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


 
Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit!
Old 07-01-2007, 5:30 PM   #9
Bitruder
 
Bitruder's Avatar
 
Posts: n/a
My Photos: (0)

Banked:
MK Cash: $

I am Worth:
MK Cash: $
Donate

Recent Blog: None

Default stop people linking to pages

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....
>
>
>



 
Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit!
Featured Websites
Free Space
Free Space
Free Space Free Space
Closed Thread
Tags: , , ,




Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

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




All times are GMT +1. The time now is 12:42 AM.


Powered by: vBulletin Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
LinkBacks Enabled by vBSEO 3.0.0
Cheap Computers
MK PitStop Copyright 2005 - 2008

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98