Jump to content

Recommended Posts

Hi Guys,

I need to prevent index.php being accessed directly ie [a href=\"http://www.mydomain.com/index.php\" target=\"_blank\"]http://www.mydomain.com/index.php[/a]. People should only be able to access it when they are viewing [a href=\"http://www.mydomain.com/main.html\" target=\"_blank\"]http://www.mydomain.com/main.html[/a] - this page has 4 frames, index.php is the main one. I only want people to view index.php through main.html.

Is this possible ? Also if they try viewing it directly they need to be redirected to main.html. How would i go about this ?

Thanks,

Charlie
Link to comment
https://forums.phpfreaks.com/topic/12624-is-this-possible/
Share on other sites

There are lots of disadvantages to frames, but if you really want to use them then you'll need a javascript solution such as the code shown at [a href=\"http://javascript.internet.com/navigation/force-frames.html\" target=\"_blank\"]http://javascript.internet.com/navigation/force-frames.html[/a]

And this is not a php question, so I'm relocating it to the javascript forum.
Link to comment
https://forums.phpfreaks.com/topic/12624-is-this-possible/#findComment-48428
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.