Go Back   WhatIsMyIP.com® Forum > IP and Network Questions > General Questions

Notices

General Questions Any question that doesn't fit in another category...please ask it here.

Closed Thread
 
Thread Tools Display Modes
Old 04-03-2012, 01:32 PM   #1
BriffDeloso
Member
 
Join Date: Apr 2012
Posts: 2
BriffDeloso is on a distinguished road
Default Different ways of banning people

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
BriffDeloso is offline  
Old 04-03-2012, 01:40 PM   #2
wimiadmin
Administrator
 
wimiadmin's Avatar
 
Join Date: May 2008
Location: Pigeon Forge, TN
Posts: 1,507
wimiadmin is a splendid one to beholdwimiadmin is a splendid one to beholdwimiadmin is a splendid one to beholdwimiadmin is a splendid one to beholdwimiadmin is a splendid one to beholdwimiadmin is a splendid one to beholdwimiadmin is a splendid one to behold
Default

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.
__________________
Brian
Please Search Before Posting
wimiadmin is offline  
Old 04-03-2012, 02:09 PM   #3
BriffDeloso
Member
 
Join Date: Apr 2012
Posts: 2
BriffDeloso is on a distinguished road
Default

Quote:
Originally Posted by wimiadmin View Post
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.
But how can you ban someone with a dynamic IP?
BriffDeloso is offline  
Old 04-03-2012, 09:30 PM   #4
Shnerdly
• The †erminator
 
Shnerdly's Avatar
 
Join Date: Jun 2010
Location: The frozen tundra of Minnesota
Posts: 1,344
Shnerdly has disabled reputation
Default

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.

Shnerdly is offline  
Closed Thread

Bookmarks

Tags
ban, bans, ip bans

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 12:49 AM.


What Is My IP

Join WhatIsMyIP.com on Facebook Follow WIMI on Twitter

Need IP address location detection service? Get it from IP2Location.com now.

Powered by vBulletin®
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright - WhatIsMyIP.com®