The most common scenario is where you want everyone except a few visitors to be able to get to your site. Your .htaccess file would start like this:
order allow,deny
allow from all
Then you follow that with lines to specify the addresses that you want to block:
deny from 192.168.128.14
deny from 192.168.128.
deny from somehost.example.com
deny from .example.com
Leaving to p/u gf ... but it is very easy. Use notepad to make the file called .htaccess ( note the . before the name ).
Put the file in the folder that you want to protect.
Last edited by directfiesta; 08-13-2004, 02:59 PM.
I know that Asspimple is stoopid ... As he says, it is a FACT !
But I can't figure out how he can breathe or type , at the same time ....
Originally posted by directfiesta The most common scenario is where you want everyone except a few visitors to be able to get to your site. Your .htaccess file would start like this:
order allow,deny
allow from all
Then you follow that with lines to specify the addresses that you want to block:
deny from 192.168.128.14
deny from 192.168.128.
deny from somehost.example.com
deny from .example.com
Leaving to p/u gf ... but it is very easy. Use notepad to make the file called .htaccess ( note the . before the name ).
Put the file in the folder that you want to protect.
thanks for the help
would be better though if you could just copy a code from your site that does that and send me via icq: 162136565 if you can...
I don't know anything about htacces, so I better just get such code and copy it
Originally posted by alexg thanks for the help
would be better though if you could just copy a code from your site that does that and send me via icq: 162136565 if you can...
I don't know anything about htacces, so I better just get such code and copy it
someone must have it...
LOL .... I don't use ICQ... I have a number, but that was beyond me ...
open notepad hahahaha=> type the following, changing the domain and/or the IP's to block hahahaha=>
--- start -----
order allow,deny
allow from all
deny from 192.168.128.14
deny from 192.168.128.
deny from somehost.example.com
deny from .example.com
---- end ----
- Save it as a text file. It will be like htaccess.txt .
- Upload it to the folder ( the one you want to protect and all under it ) in your server .
- rename it .htaccess ( note no more extension text ).
Originally posted by directfiesta LOL .... I don't use ICQ... I have a number, but that was beyond me ...
open notepad hahahaha=> type the following, changing the domain and/or the IP's to block hahahaha=>
--- start -----
order allow,deny
allow from all
deny from 192.168.128.14
deny from 192.168.128.
deny from somehost.example.com
deny from .example.com
---- end ----
- Save it as a text file. It will be like htaccess.txt .
- Upload it to the folder ( the one you want to protect and all under it ) in your server .
- rename it .htaccess ( note no more extension text ).
Comment