IPB
Your FREE membership includes:
  • A friendly community where you can come to chat
  • Receive completely FREE quality web hosting!
  • Get reviews and suggestions for your websites!
  • Take part in competitions where you can win prizes from cash, vouchers, or win special unadvertised hosting

Welcome Guest ( Log In | Register )


Shortcut links:
Like this topic? Digg it... Digg this topic · Save to del.icio.us · Slashdot It · Post to Technorati · Post to Furl · Submit to Reddit · Share on Facebook · Fark It · Googlize This Post · Add to ma.gnolia · Tag to Wink · Add to MyWeb · Add to Netscape
 
Reply to this topicStart new topic
> Is this possible?, Only allowing people to visit my site via a certain link?
Marcus
post Dec 4 2007, 04:06 PM
Post #1


Advanced Member
Group Icon

Group: Members
Posts: 207
Joined: 5-January 07
Member No.: 437



Hi,
Is it possible to only allow people to visit my site via a certain link? I dont know what this is called but help would be greatly apreciated!
Thanks, Marcus
Go to the top of the page
 
+Quote Post
Corey
post Dec 5 2007, 12:44 AM
Post #2


Professional
Group Icon

Group: Moderators
Posts: 1169
Joined: 13-January 07
From: St.Louis
Member No.: 496



QUOTE(Marcus @ Dec 4 2007, 03:05 PM) *
Hi,
Is it possible to only allow people to visit my site via a certain link? I dont know what this is called but help would be greatly apreciated!
Thanks, Marcus


I'm confused on what you mean. Do you mean like if your website is http://www.osphp.org, and you want people to only visit http://osphp.org without the "www"?


--------------------
Need a PHP script, or help with programming? Visit ScriptScribes.com!

ScriptScribes.com!


-Corey
Go to the top of the page
 
+Quote Post
Marcus
post Dec 5 2007, 08:27 AM
Post #3


Advanced Member
Group Icon

Group: Members
Posts: 207
Joined: 5-January 07
Member No.: 437



Not really. Say my website is www.mabo.tfcph.com/games I only want it to be accessed via a certain passworded URL like mabo.tfcph.com/passworded.
I want it so that if someone just types in www.mabo.tfcph.com/games in the address bar they will get redirected away.
Thanks
Go to the top of the page
 
+Quote Post
Sava
post Dec 5 2007, 01:29 PM
Post #4


Advanced Member
Group Icon

Group: Members
Posts: 217
Joined: 3-January 07
From: http://savasplace.com
Member No.: 420



Made a simple script for you just now.
So ... you want your site to be accessed only from a certain link. You can do that easily with this simple PHP Script

QUOTE
<?PHP
if($_GET[show] == 'site') {
?>

// Site source code
<html>
<head>
<title>Test</title>
</head>
<body>
text
</body>
</html>
<?PHP
}
else
{
header('Location: http://www.example.com/');
}
?>



And now to explain how to use it and what it does.
As you can see the site can be accessed only if you call the ?show=site function
So your site will be viewed only at the following link: http://www.yoursite.com/index.php?show=site

If accessed at http://www.yoursite.com/index.php it will redirect the user to http://www.example.com

Hope it's useful for you Marcus

Sava


--------------------
+ Sava's Place - Free PHP Scripts and CSS Templates
+ Baby Doll - Why are girls ... girls ?
+ Pantherkut.com - Do you like cats ?
+ Underground Speed - Really fast cars
+ Sava [.] name - Just my name :D
Go to the top of the page
 
+Quote Post

Reply to this topicStart new topic
1 User(s) are reading this topic (1 Guests and 0 Anonymous Users)
0 Members:

 



© GrandForums.com