View Single Post
Old 02-14-2001, 01:20 PM  
eiht_98
Confirmed User
 
Join Date: Jan 2001
Location: EU
Posts: 6,103
I found the script that allows to access the website only from the url specified in the script...it works also if a user tries to access it from the Favorites menu in IE..here it is...

< !-- ONE STEP TO INSTALL MUST VISIT FROM....:

1. Copy the coding into the HEAD of your HTML document -->

< !-- STEP ONE: Paste this code into the HEAD of your HTML document -->

<HEAD>

<SCRIPT LANGUAGE="JavaScript">

< !-- This script and many more are available free online at -->
< !-- The JavaScript Source!! http://javascript.internet.com -->

< !-- Begin
var requiredfrom = "index.html"; // required prev. page
if (document.referrer.indexOf(requiredfrom) == -1) {
alert("You must come to this page from " + requiredfrom);
window.location=requiredfrom;
}
// End -->
</script>

<center>
<font face="arial, helvetica" size="-2">Free JavaScripts provided

by <a href="http://javascriptsource.com">The JavaScript Source</a></font>
</center>

< !-- Script Size: 0.62 KB -->
eiht_98 is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote