Thread: Referral URL
View Single Post
Old 01-17-2004, 04:31 PM   #4 (permalink)
arch13
Loves my girl in thongs
 
arch13's Avatar
 
Location: North of Mexico, South of Canada
Dude,

Is your hosting on linux or MS?
When you ftp in, do you start in a home directory like / or /www?
When you log on via ftp, the prompt box should scroll through some things after password is accepted. Amongst this is usually some idication of the system OS.

Unix systems us a file called .httaccess that's invisable in the main directory (that / or /www). You won't see it in your ftp window but it's there.

There are great tutorials on .htaccess on the net that will show you how to add one line to the file that will do exactly this.
you can create a file called htaccess.txt, add the code you want to it, then upload it and rename it to .htaccess via ftp.

Here's a semi-fictional example from my site of what the file should look like:
Code:
.htaccess 

AddType x-mapp-php4 .php3
ErrorDocument 400 http://www.arch13.com/400.php
ErrorDocument 403 http://www.arch13.com/403.php
ErrorDocument 404 http://www.arch13.com/404.php
ErrorDocument 500 http://www.arch13.com/500.php
the first line deal with how to interpret php files and the other lines define the error pages (ie a custom 404 error page).

adding lines of code into this will tell the system whom to allow access to. You can define it by IP address or referer.
__________________
Seen on an employer evaluation:

"The wheel is turning but the hamsters dead"
____________________________
Is arch13 really a porn diety ? find out after the film at 11.
-Nanofever

Last edited by arch13; 01-17-2004 at 04:46 PM..
arch13 is offline  
 

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46