View previous topic :: View next topic |
Author |
Message |
rac83 -
Joined: 07 Mar 2004 Posts: 3
|
Posted: Sat Apr 17, 2004 5:14 am Post subject: QUESTION make a website only accessable from a location |
|
|
I was wondering if anyone had some info about
how to make a website on yourwebserver only accessable from a certain specified location or only from certain page on your website
thanks in advance |
|
Back to top |
|
 |
BlueDevil -
Joined: 17 Apr 2004 Posts: 7
|
Posted: Sat Apr 17, 2004 10:20 am Post subject: |
|
|
Not sure if this is what you mean...
For example, in a website using Frames, you can check to see if one of the frame pages is being loaded into the whole window - and stop it - by including the following script in the <head>.
<script language="JavaScript">
<!--
if (top == self) {
top.location.href = 'http://www.domain.com';
}
//-->
</script> |
|
Back to top |
|
 |
rac83 -
Joined: 07 Mar 2004 Posts: 3
|
Posted: Sat Apr 17, 2004 5:18 pm Post subject: |
|
|
i was thinking more like
protecting a website from being accessed unless a certain specified link is the refering url or even better a from a certain subtirectory tree |
|
Back to top |
|
 |
Moxxnixx -
Joined: 21 Jun 2003 Posts: 1226 Location: Florida
|
Posted: Sat Apr 17, 2004 6:49 pm Post subject: |
|
|
Just curious - Why don't you make the site password-protected, so it can be accessed by only one person? |
|
Back to top |
|
 |
iNaNimAtE -
Joined: 05 Nov 2003 Posts: 2381 Location: Everywhere you're not.
|
Posted: Sun Apr 18, 2004 4:41 am Post subject: |
|
|
Try out http://www.hotscripts.com for all your scripts. They usually have the answer.
Why do you want to do this anyway? _________________ Bienvenidos! |
|
Back to top |
 |
 |
|