Blocking IPs from accessing your site

  • Thread starter Sushubh
  • Start date
  • Replies: Replies 5
  • Views: Views 4,689
Sushubh

Sushubh

Admin
Staff member
Messages
397,563
Location
Gurgaon
ISP
Excitel
Airtel
Every server is different but one of these 2 chunk of codes inside your htaccess file should work:


order allow,deny
deny from 123.123.123.123
deny from 234.234.234.234
allow from all
[/b]
deny from 123.123.123.123
deny from 234.234.234.234[/b]
 
U

ultra vires

O.o
Messages
675
Location
NA
ISP
MTNL 749NU
don think that is an effective way, most people hav dynamic IP so they easily get thru that.Anyway to ban MAC address:blink: , though even it can be changed but still offers better blockin
 
Sushubh

Sushubh

Admin
Staff member
Messages
397,563
Location
Gurgaon
ISP
Excitel
Airtel
well if we do not specify the last three digits, it covers a lot of possible users still :p
 
J

JSpectre

Newbie
Messages
10
Location
NA
ISP
BSNL
don think that is an effective way, most people hav dynamic IP so they easily get thru that.
Anyway to ban MAC address:blink: , though even it can be changed but still offers better blockin

True,You can use this method against noob but not experienced professional.

best regards,
Spectre
 
ghpk

ghpk

Now Visible in NCR ;)
Messages
2,309
Location
India
ISP
Airtel Broadband + 4G and Voda 4G
If its a cPanel based server, you can use "IP Deny Manager" to specify a Single IP or the Entire Range you wish to block.