How much can I control what sites can link to my pages?

Questions about the MySQL, PostgreSQL, and most other databases, as well as using it with PHP can be asked here.

Moderator: General Moderators

Post Reply
Dick Angel
Forum Newbie
Posts: 1
Joined: Fri Feb 07, 2003 5:58 pm

How much can I control what sites can link to my pages?

Post by Dick Angel »

I want to allow other web sites to subscribe to certain pages I create, so their viewers see them as part of their pages. If they have not subscribed, I don't want my pages to load if they try to link to them. Can this be done with php and mySQL? Is there anything out there that already does this kind of thing? :?:
fractalvibes
Forum Contributor
Posts: 335
Joined: Thu Sep 26, 2002 6:14 pm
Location: Waco, Texas

Post by fractalvibes »

Ok - assuming they must provide you with some info when they subscribe,
perhaps at the top of your pages you could check the requesting IP address via the collection of server variables in the HTTP request and redirect to another "DENIED" page if it doesn't match with one of your subscribers(which would be contained within a database).

An Idea perhaps....

Phil J.
User avatar
Stoker
Forum Regular
Posts: 782
Joined: Thu Jan 23, 2003 9:45 pm
Location: SWNY
Contact:

Post by Stoker »

maybe what you are asking for is checking referer url? that is possible but not at all failsafe, actually, I don't think there are many failsafe options other than having the providing site pull the stuff from yours and display on theirs (requiring them to have som scripts on their site), authenticated by IP or posted login..
Post Reply