Banning IP numbers ,please advise.

windows

Guest
On my home page I would like to ban several IP users from getting access to all of my pages,especially the link to my forum.From my counter stats I know what their IP numbers are and know what numbers to enter.I don't know what html text to use,or if it's even possible to use html.If I can do this would information be entered on just the default page or forum link page,as well? My server is a relatively small IP that doesn't have Linux or Apache server.I can't set up CGI scripts and also don't have knowledge about them.I will appreciate your input.<!--content-->What forum software are you using? Most forum/BBS software allows banning of specific IPs (I think).<br />
<br />
I had a look at your site and it looks like you're using VoyForums from Voyager Info-systems. Some more research led me to their help on banning IPs. See: <!-- m --><a class="postlink" href="http://www.voy.com/help/banning.html">http://www.voy.com/help/banning.html</a><!-- m --> <br />
<br />
A futherrrrrr look (i.e. scrolling down the forums page) shows you are also using WebBBS as well. :eek: A search of their site came up with the following at <!-- m --><a class="postlink" href="http://awsd.com/scripts/webbbs/docs.txt">http://awsd.com/scripts/webbbs/docs.txt</a><!-- m --> : $BannedIPsFile: You can, if you like, define here the path of a file in which the IP addresses or domain names of any individuals you want banned from your forum will be stored. The file can be edited with the administrative script. That should keep you going for a while. :) <br />
<br />
Neil<!--content-->If you want to prevent certain ip address from viewing one of your pages, put this script in the header.<br />
<script language="javascript"><br />
var ip = '<!--#echo var="REMOTE_ADDR"-->'<br />
var bannedip = '12.345.67.890'<br />
if (ip == bannedip) { location.href = 'http://www.htmlforums.com/archive/index.php/getlost.html' }<br />
</script><br />
change the value for bannedip to the ip address of the person you want to ban, so if their address is 40.331.56.098 the line will read var bannedip = '40.331.56.098'<br />
Also change getlost.html to the address of the page you want them to be taken to instead.<br />
<br />
To ban two addresses, the script would look like this.<br />
<script language="javascript"><br />
var ip = '<!--#echo var="REMOTE_ADDR"-->'<br />
var bannedip = '12.345.67.890'<br />
var bannedip2 = '09.876.54.321'<br />
if (ip == bannedip) { location.href = 'http://www.htmlforums.com/archive/index.php/getlost.html' }<br />
if (ip == bannedip2) { location.href = 'http://www.htmlforums.com/archive/index.php/getlost.html' }<br />
</script><br />
I recommend you do as Option1 said and use your forum's ip blocking function for the forums themselves, but for your other pages you can use this script.<!--content-->Paladin, thanks for answering. There are more details that should clarify my request. I've sent the information to you in a pm.Today is my first time in quite a while to use this forum, so if you don't get message I sent, please email me.Thanks.<!--content-->Message deleted (duplicate post)<!--content-->This is a really interesting subject... just wanted to bump it up, maybe someone else has something to add to it.<br />
<br />
Check this out guys!!<br />
<br />
<!-- m --><a class="postlink" href="http://www.jsmadeeasy.com/javascripts/User%20Details/IP%20Address%20Filter/index.htm">http://www.jsmadeeasy.com/javascripts/U ... /index.htm</a><!-- m --><br />
<br />
Check This One Too For More Info:<br />
<br />
<!-- m --><a class="postlink" href="http://www.jsmadeeasy.com/javascripts/User%20Details/list.htm">http://www.jsmadeeasy.com/javascripts/U ... s/list.htm</a><!-- m --><br />
<br />
That's for Netscrape.<!--content-->
 
Back
Top