Forums
This topic is locked
Blocking Ip's On a Virtual Server
Posted 22 Dec 2002 21:14:46
1
has voted
22 Dec 2002 21:14:46 K Stottler posted:
Hi guys...I need some help...so I am going to play damsal in distress. I have these 2 mooches that have been locked on to me since dec 9 and I would like to block their IP's from my site. Doesn anyone have any suggestions or code snippets that will help me dump the mooches with Ultra Dev??? Any input would be great! <font face='Comic Sans MS'></font id='Comic Sans MS'>Replies
Replied 24 Dec 2002 10:10:55
24 Dec 2002 10:10:55 Lee Diggins replied:
Hi Nlb,
This is for IIS 4/5.
Select your website and open the properties dialog, go to the directory security tab, hit the Edit button for IP address and domain name restrictions, add the IP address to the Deny Access list. You may need to stop and restart your web service.
Hope this helps.
Digga
Sharing Knowledge Saves Valuable Time!!!
This is for IIS 4/5.
Select your website and open the properties dialog, go to the directory security tab, hit the Edit button for IP address and domain name restrictions, add the IP address to the Deny Access list. You may need to stop and restart your web service.
Hope this helps.
Digga
Sharing Knowledge Saves Valuable Time!!!
Replied 24 Dec 2002 12:44:17
24 Dec 2002 12:44:17 Stefan P replied:
If you weren't hosting the site yourself,you could code the page/s to prevent access. Request the IP address of the visitor as follows and send them their very own message!
<html>
<body>
<%
Dim IP
IP = Request.ServerVariables("REMOTE_ADDR"
If IP = "xxx.xxx.xxx.xxx" Then
Response.Write("BOG OFF!"
End If
%>
<%
If IP <> "xxx.xxx.xxx.xxx" Then
%>
REST OF PAGE
<% End If %>
</body>
</html>
UD4 | ASP | VBScript | ACCESS | IIS5
<html>
<body>
<%
Dim IP
IP = Request.ServerVariables("REMOTE_ADDR"
If IP = "xxx.xxx.xxx.xxx" Then
Response.Write("BOG OFF!"
End If
%>
<%
If IP <> "xxx.xxx.xxx.xxx" Then
%>
REST OF PAGE
<% End If %>
</body>
</html>
UD4 | ASP | VBScript | ACCESS | IIS5