
|
|||||||
| Notices |
| General Questions Any question that doesn't fit in another category...please ask it here. |
![]() |
|
|
Thread Tools | Display Modes |
|
|
#1 |
|
Member
Join Date: Apr 2012
Posts: 2
![]() |
Greetings,
I have a simple question: What are the different ways of banning people from a secure (https) website? In other words, what are the ways of identifying a computer via the internet? IE: IP bans, MAC address bans (even though that isn't really possible as the number is local), or Physical Address Bans. Any help is appreciated, Briff |
|
|
|
|
#2 |
|
Administrator
Join Date: May 2008
Location: Pigeon Forge, TN
Posts: 1,395
![]() ![]() ![]() ![]() ![]() ![]() ![]() |
Hi Briff,
Welcome to the forum. You can ban based on a single IP example 123.123.123.123 or IP blocks like 123.123.123.*. This can all be done in the .htaccess file. If you search you should find plenty of examples. http://www.google.com/search?q=block+ip+.htaccess You can also block an entire country. I've found this site helpful www.blockacountry.com to list all of the IPs associated. You can also ban based on UserAgent. So if people are coming to you with a blank UA, then you may deem that they're up to no good so you can ban them. Keep in mind that the bigger your .htaccess file is the more the load will be on your server as each request has to process. If you decide to ban based on UA or IP, I'd list the UA's first since that list will be shorter to process. |
|
|
|
|
#3 | |
|
Member
Join Date: Apr 2012
Posts: 2
![]() |
Quote:
|
|
|
|
|
|
#4 |
|
The Terminator
Join Date: Jun 2010
Location: The frozen tundra of Minnesota
Posts: 1,016
![]() |
You can also ban using iptables if you have root access to the machine.
Banning a dynamic address can be difficult. You can ban blocks of addresses as wimiadmin suggested in the htaccess file. You can also ban blocks of addresses in the iptables for example 123.123.123.0/24 would block everything starting with 123.123.123 or 123.123.0.0/16 would block everything beginning with 123.123
__________________
► ► Grammar is important. For instance, commas save lives: Let's eat grandpa. OR Lets eat, grandpa. ► ► |
|
|
![]() |
| Bookmarks |
| Tags |
| ban, bans, ip bans |
| Thread Tools | |
| Display Modes | |
|
|