rejetto forum

Software => HFS ~ HTTP File Server => HTML & templates => Topic started by: guest on April 27, 2008, 10:58:39 PM

Title: Is there a complete idiots guide for this lol
Post by: guest on April 27, 2008, 10:58:39 PM
i searched the forum to find this but nothing makes sense to me. I wanna have a page when someone types in my url that i can have an enter here button. making the page isnt my problem, it is having the page appear first then linking my button to enter the file server. more or less a download at your own risk yes i agree button if ya know what i mean.
Title: Re: Is there a complete idiots guide for this lol
Post by: Foggy on April 28, 2008, 12:27:58 AM
there is not a specific guide for what you ask but it is possible.

basically to do it, use an if statement that test if the refer field of the http header(use header macro) matches your domain/ip.

if it is true, include the main section.

if it is false, include the message.
Title: Re: Is there a complete idiots guide for this lol
Post by: guest on April 28, 2008, 01:32:38 AM
ok im confused
Title: Re: Is there a complete idiots guide for this lol
Post by: rejetto on April 28, 2008, 05:37:17 AM
METHOD #1 - EASIER
1. put all your stuff inside a folder called "stuff"
2. create a file index.html with content similar to
Code: [Select]
<a href='/stuff'>Enter at your own risk</a>
4. put this file in the root of the virtual file system

METHOD #2 -  HARDER
1. switch to expert mode
2. menu -> other options -> enable ~nodefault
3. create a file index.html with content similar to
Code: [Select]
<a href='/~nodefault'>Enter at your own risk</a>
4. put this file in the root of the virtual file system