Your FREE membership includes:
|
| Shortcut links: |
|
|
Like this topic? Digg it...
|
![]() ![]() |
Dec 4 2007, 04:06 PM
Post
#1
|
|
|
Advanced Member 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 |
|
|
|
Dec 5 2007, 12:44 AM
Post
#2
|
|
|
Professional ![]() Group: Moderators Posts: 1169 Joined: 13-January 07 From: St.Louis Member No.: 496 |
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"? -------------------- |
|
|
|
Dec 5 2007, 08:27 AM
Post
#3
|
|
|
Advanced Member 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 |
|
|
|
Dec 5 2007, 01:29 PM
Post
#4
|
|
![]() Advanced Member 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 |
|
|
|
![]() ![]() |
| Lo-Fi Version | Time is now: 7th January 2009 - 08:26 PM |