Forum Moderators: coopster & phranque

Message Too Old, No Replies

htaccess question

need to ban by IP number

         

Rugles

4:12 pm on Dec 10, 2001 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Hello

I need to ban several Ip addresses.

Does htaccess work on a server running IIS?

If not what is the preferred and least complicated way to ban users by IP number?

gethan

4:54 pm on Dec 10, 2001 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Hi Rugles,

.htaccess dosen't work on IIS.

There may be an option to ban by IP in the IIS configuration (I doubt it). Your other options include;

Make all your pages dynamic - (set html to be run through asp). Include at the very first point in the page a little security call that checks against your list - if banned prints 404 or something.

Or move to apache - NT + 98 versions are available.

Others more familiar with IIS maybe able to provide some more options. Good luck.

seriesint

5:45 pm on Dec 10, 2001 (gmt 0)



In IIS 4 go to web site properties >directory security edit the ip and domain name restrictions. Outside of that its a script/isapi dll solution.

[iisadministrator.com...]

Xoc

5:46 pm on Dec 10, 2001 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



I wrote how to do it in this thread: [webmasterworld.com...]

gethan

8:44 pm on Dec 10, 2001 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



> option to ban by IP in the IIS configuration (I doubt it).

I no longer doubt it ;)

Go with seriesint & Xoc's method - looks very simple.

seriesint

9:27 pm on Dec 10, 2001 (gmt 0)



>gethan
>>- looks very simple.
It's IIS, it is either simple or impossible.
All by design I think.