QUESTION make a website only accessable from a location

 
Post new topic   Reply to topic    Aprelium Forum Index -> General Questions
View previous topic :: View next topic  
Author Message
rac83
-


Joined: 07 Mar 2004
Posts: 3

PostPosted: Sat Apr 17, 2004 5:14 am    Post subject: QUESTION make a website only accessable from a location Reply with quote

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 View user's profile Send private message
BlueDevil
-


Joined: 17 Apr 2004
Posts: 7

PostPosted: Sat Apr 17, 2004 10:20 am    Post subject: Reply with quote

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 View user's profile Send private message
rac83
-


Joined: 07 Mar 2004
Posts: 3

PostPosted: Sat Apr 17, 2004 5:18 pm    Post subject: Reply with quote

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 View user's profile Send private message
Moxxnixx
-


Joined: 21 Jun 2003
Posts: 1226
Location: Florida

PostPosted: Sat Apr 17, 2004 6:49 pm    Post subject: Reply with quote

Just curious - Why don't you make the site password-protected, so it can be accessed by only one person?
Back to top View user's profile Send private message Visit poster's website
iNaNimAtE
-


Joined: 05 Nov 2003
Posts: 2381
Location: Everywhere you're not.

PostPosted: Sun Apr 18, 2004 4:41 am    Post subject: Reply with quote

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 View user's profile Send private message Send e-mail Visit poster's website AIM Address Yahoo Messenger MSN Messenger ICQ Number
Display posts from previous:   
Post new topic   Reply to topic    Aprelium Forum Index -> General Questions All times are GMT + 1 Hour
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB phpBB Group