elisa05fr Posted January 25, 2009 Report Share Posted January 25, 2009 Hi, I am using a file called index,htm that contains a frame and goes to another file called main.htm Now, I don't want the user to access the main.htm file directly but ONLY through the index.htm file How can I do that? Thanks! Quote Link to comment Share on other sites More sharing options...
newseed Posted January 25, 2009 Report Share Posted January 25, 2009 I strongly recommend taking your site out of frames and use server side includes instead. Search Engines and Frames Quote Link to comment Share on other sites More sharing options...
elisa05fr Posted January 25, 2009 Author Report Share Posted January 25, 2009 Thanks for your quick answer... I am using a frame because I want to hide part of the code..... nothing important really but I am using pop up effect page and I would like to hide all the information put in those pop up pages.. that's why I am using a frame..... What do you mean by "use serve side includes instead" ?? Thank you for your help Quote Link to comment Share on other sites More sharing options...
Andrea Posted January 25, 2009 Report Share Posted January 25, 2009 You cannot hide your code - anybody who knows just a little about HTML will be able to find it -and the others don't care, anyway. http://www.killersites.com/mvnforum/mvnforum/viewthread?thread=4258 http://www.killersites.com/forums/topic/357/repeating-sections-of-code-on-many-pages/ Quote Link to comment Share on other sites More sharing options...
administrator Posted January 25, 2009 Report Share Posted January 25, 2009 Hi, You can watch my video on PHP includes. Hope that helps, Stefan Quote Link to comment Share on other sites More sharing options...
jlhaslip Posted January 26, 2009 Report Share Posted January 26, 2009 One thing that *could* be done is to have an Include file of php code to check the Refferring page to make sure that the access for the page is from your Domain. If someone tries to hotlink the page, and the referral is from another site, or direct, they are sent to your Index page. But you need to know some php to code the script. Quote Link to comment Share on other sites More sharing options...
lwsimon Posted January 26, 2009 Report Share Posted January 26, 2009 (edited) One thing that *could* be done is to have an Include file of php code to check the Refferring page to make sure that the access for the page is from your Domain. If someone tries to hotlink the page, and the referral is from another site, or direct, they are sent to your Index page. But you need to know some php to code the script. ... and anyone with basic knowledge of javascript could obtain a copy of your code with nothing more than Internet Explorer. There is no way to protect client-side code on the web. At all. Edited January 26, 2009 by lwsimon Quote Link to comment Share on other sites More sharing options...
elisa05fr Posted January 26, 2009 Author Report Share Posted January 26, 2009 THank you very much for your help. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.