This Message Forum is no longer in use

Please use the new Bravenet Help Forums FOUND HERE

General Forum
This Forum is Locked
Author
Comment
Can I block an IP address from viewing my site??

Does anyone know if I can block a specific IP address from visiting my website? I know I can block an IP from viewing a forum or guestbook but can't locate anything about blocking from the entire site.

Thanks in advance!

Dawn

Re: Can I block an IP address from viewing my site??

I know you can put a password on your site so only those with the password can see it. Don't know if you can block by IP

Re: Can I block an IP address from viewing my site??

you can block ip's but it's not effecent becuase you can easily mask your ip or use a proxy server or if you have dial up us a diffrent host ip if I might recommend (if it's even possible to do in webpages) the best way to keep a person out is through their M.A.C. Adress (physical address) and that you can not change unless you physically tincker with your O.S. and your computer itself

Re: Can I block an IP address from viewing my site??

The IP blocking function supposedly covers all Bravenet services. As already said it is very unreliable and there have been several instances of people accidentally blocking themselves as most ISPs will reassign an IP address on the fly when a PC is disconnected from the net.

Re: Can I block an IP address from viewing my site??

Thanks guys! I appreciate the help :) Dawndi

Re: Can I block an IP address from viewing my site??

CODE

/sbin/iptables -A INPUT -m mac --mac-source XX:XX:XX:XX:XX:XX -j DROP
/sbin/iptables -A INPUT -s -j DROP

The first drops packets from selected MAC-address, second drops packets from selected IP.

For example this could be a file which you load with iptables-restore (because iptables interpretes this, you don't need to give "/sbin/iptables"). Note this example config won't give a full protection for you!

Code:

*filter
:INPUT DROP [0:0]
:FORWARD DROP [0:0]
UTPUT ACCEPT [0:0]

-A INPUT -m mac --mac-source 00:00:00:00:00:00 -j DROP
-A INPUT -s 000.000.0.0 -j DROP

COMMIT Remember also that MAC and IP are both easy to change or even spoof.

Re: Can I block an IP address from viewing my site??

ok, heres another chlage for you **** try finding someones MAC address over the internet a content away... yeah I doubt that code will work becuase it's not as easy as 1 - 2 - 3 you got nothing on me

besides by the way your commands look you might need CIG or something like that. we are looking for script that will block users yet at the same time(s) will not be able to be bypassed easy and can implemented useing from the range of php, javascript, my sql and maby even html(html is most unlikly)



P.S. good try though :)

Re: Can I block an IP address from viewing my site??

If you know what you're doing it CAN all be done!

Re: Can I block an IP address from viewing my site??

P.S. 2
you CAN NOT change your physical address unless you tinker with your O.S. (like you build it from scratch)
although you can change you SSID and IP.

I know you can't change you MAC address becuase that is what I use to keep track of my private network (of 5 pc's)and how I keep unwanted wanderers and hackers out and away from my own little network