MyBB Community Forums

Full Version: restrict browser access
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Hi, I have several Chat rooms on my site, I want to be able to access them from within the site but not from the browser... for example bookmark the page or copy and paste into browsers...is this possible?Huh
It was possible with flashgames that they wouldnt work under a certain domain.
( Downloaded a flash game from armorgames once for offline use on my laptop, but didnt work because the url wasnt armorgames.com )
Not sure if it's usable on PHP as well. but it's not impossible
this is isnt for games, i have my chat rooms set up so they open in a new window, just want to restrict it so people have to come on to the forum to use them instead of bypassing the forum an example would be http://myforum.com/chatroom i dont want that to be able to open outside the forum i only want that to open once inside the forum
If it can be done with games, it can also be done with chats.
Aka, its possible with flash, does your chat uses flash ?
yes, it uses the shockwave flash player to display oh and love your signature how you do that? Meaning how you get Dutch harbor to be a link?
*facepalm*

In the PHP code of the chat page, add this:

if($_SERVER['HTTP_REFERER'] != "http://yourdomain.com/forum/")
{
header("Location: http://yourdomain.com/forum/");
}
ok im not haveing luck, with this, its not loading right, i must be placing it in wrong spot on that index page, exactly where in the php index file do i place this?
At the top.
After <?php and before any other code
ok made a mistake, the index file is in html, but most other files are php, also have some xml files, tried using that code at the top of the index file never worked