Tycoon Talk
Become a Big fish!
The number 1 forum for online business!
Post topics, ask questions, share your knowledge.
Tycoon Talk is part of Freelancer.com - find skilled workers online at a fraction of the cost.

PHP Forum


You are currently viewing our PHP Forum as a guest. Please register to participate.
Login



Freelance Jobs

Reply
Website access through another website?
Old 07-20-2009, 06:18 AM Website access through another website?
Junior Talker

Posts: 1
Name: Mike
Trades: 0
Scenario:
I have a php script on my website (website1.com/test.php)
Another website uses an iframe to make it look like my test.php page is on their site (website2.com/smoke-and-mirrors.php)

Question:
I want to stop anyone from browsing to website1.com/test.php, and only allow website2.com to access it. So that it can only be viewed through website2.com/smoke-and-mirrors.php.

More Info
The goal is to sell access to the pages i develop and allow my clients to make it look like the page is on their site.

From my googleing, it sounds like the an .htaccess REWRITE rule might do this?
I would prefer to do it in PHP though as that is what I am best at.
I have tried the $_SERVER['HTTP_REFERER'] global variable, but found that it is not reliable.

Edit: Maybe some type of iframe authentication via an ip address? As the website2.com ip address would be static.

Any help would be much appreciated.

Last edited by mike.jaz; 07-20-2009 at 05:54 PM.. Reason: more info/alternate wording
mike.jaz is offline
Reply With Quote
View Public Profile
 
 
Register now for full access!
Old 07-21-2009, 08:08 AM Re: Website access through another website?
konetch's Avatar
Ultra Talker

Posts: 258
Trades: 0
I think an .htaccess would be fine. The main thing is to make sure the pages aren't indexed or linked. So whenever you have an iframe all you'll have to do is rel="nofollow" on it. Also, make sure you don't link to it from your site. If you do that it will probably stay hidden well as long as your site doesn't get too popular.
__________________
Alex
konetch is offline
Reply With Quote
View Public Profile
 
Reply     « Reply to Website access through another website?
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search

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

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





   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML



Page generated in 0.25493 seconds with 12 queries