cancel
Showing results for 
Search instead for 
Did you mean: 

CGI htaccess File?

phoenixcomp
Newbie
Posts: 8
Registered: ‎28-01-2008

CGI htaccess File?

Hi, I want to block all ip ranges except for one, how do I do this and where in my cgi space (which folder) would I need to place the file (I want to block access to all of it)
I have tries with a script I use on another cgi server but it didn't work on Plusnets
TIA
3 REPLIES 3
Chris
Legend
Posts: 17,724
Thanks: 598
Fixes: 168
Registered: ‎05-04-2007

Re: CGI htaccess File?

You should be able place a .htaccess in the root folder of your cgi space, have a look here if your current one doesn't work.
Former Plusnet Staff member. Posts after 31st Jan 2020 are not on behalf of Plusnet.
Peter_Vaughan
Community Veteran
Posts: 14,469
Registered: ‎30-07-2007

Re: CGI htaccess File?

Blocking of IPs via htaccess has never worked as far as I remember and several people have tried in the past. It certainly won't block access to php files.
phoenixcomp
Newbie
Posts: 8
Registered: ‎28-01-2008

Re: CGI htaccess File?

Thanks for the advice, I'll give it a try later as I cant get on from work. I was trying....
AuthName "Locked"
AuthType Basic
<Limit GET POST>
order deny,allow
deny from all
allow from XXX.XXX.XXX.XXX
</Limit>