How to block ip using .htaccess file

all kinds of tutorials and guides. how, where, why, step-by-step stuff and more. also support for those tutorials and guides. ONLY post step-by-step guides/tutorials here OR reply with question if you have any.
Post Reply
User avatar
Sethioz
Admin
Admin
Posts: 4762
Joined: Fri Jul 27, 2007 5:11 pm
Custom: Gaming YT > https://youtube.com/SethiozEntertainment
Game Hacking YT > https://youtube.com/sethioz
Game Hacks Store > https://sethioz.com/shopz
Location: unknown
Contact:

How to block ip using .htaccess file

Post by Sethioz »

1. make a ".htaccess" file and upload into corresponding directory.
2. inside of .htaccess file write this:

Code: Select all

order allow,deny
deny from x.x.x.x
allow from all
where x.x.x.x is the ip you want to block. to add multiple IPs, simply do this:

Code: Select all

order allow,deny
deny from x.x.x.x
deny from x.x.x.x
deny from x.x.x.x
deny from x.x.x.x
allow from all
Post Reply