Looking to Build/Redesign a Website or Blog ?

To speak to Rakshit, call +91 968 704 2303

How to Block IP Address using .htaccess

Hello Friends,

Are you looking to block some IP address using .htaccess? If you are finding some IP address which you want to block and restrict access of your site, you can do the same using .htaccess. This is one of the good way to keep your site safe by blocking IP Address via .htaccess. Just write below piece of code in .htaccess and you will be done.

<Limit GET POST PUT>
order allow,deny
allow from all
deny from 214.53.25.64/26
</Limit>

If you want to block range of IP Address using .htaccess than write below code.

<Limit GET POST PUT>
order allow,deny
allow from all
deny from 214.53.25.64/255.255.255.192
</Limit>

Block IP Address using .htaccess, How to Block IP Address .htaccess, .htaccess code for IP Block, IP Address Ban .htaccess Code, .htaccess IP Address Ban Code can be achieved using above code.

Share:

No Comments Yet.

Leave a Reply

Your email address will not be published.