|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
|
Stop making mediocre tutorials.The best tutorials are video! Camtasia Studio makes it easy to create engaging, buzz-building screen videos at any size, in any popular format. Download the free trial!
|
|
#1
|
|||
|
|||
|
How to ban IP address to view my site
I want to ban few IP address to use my web site http://www.dealcrafter.com
the server i am using is IIS, I don't want to use any java script for banning the ip addresses I want to use server side scripts to ban the IP/user. Anybody can suggest me the resource of the script |
|
#2
|
||||
|
||||
|
When you say you're using IIS, do you actually have access to the server? If you do, open IIS and open the properties for your website. Click the Directory Security tab and you'll see an IP address section. You can ban IP addresses from there.
And please don't cross post in the future. |
|
#3
|
|||
|
|||
|
no i donot have any access to IIS server
Quote:
I am looking the solution without accessing the server |
|
#4
|
|||
|
|||
|
If you use asp you can get the user IP from request.servervariables("REMOTE_ADDR") and check it against a list you keep. Response.write to some error page if you don't want to let a user in.
__________________
====== Doug G ====== "Hide, hide witch! The good folk come to burn thee. Their keen enjoyment hid behind their gothic mask of duty." -Mark Clifton |
|
#5
|
|||
|
|||
|
There are scripts for doing this that you can look in any one of the many script archives.
|
![]() |
| Viewing: Dev Shed Forums > System Administration > IIS > How to ban IP address to view my site |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|