Block IP Address By Using htaccess

If you have a website and want to make a block for a specific IP Address that can not access the website, you simply create a file with the name. Htaccess is in place the directory on your main website.
is as follows:

1. Create a file with the name. Htaccess files and content with one of the script below:

To make a block on the IP Address

order allow, deny
deny from 127.0.0.1
allow from all


To make a block Multiple IP Address

order allow, deny
deny from 127.0.0.1
deny from 127.0.0.2
deny from 127.0.0.3
allow from all


To make a block on the IP Address range 127.0.0.0 to 127.0.0.255

deny from 127.0.0
To block the hostname to IP Address
deny from isp_name.com

*. Change IP Address in the example above with the IP Address you want

2. After that save and place the directory on your main website.
To restore your stay as remove or delete the script file. "Htaccess"

Peluang Bisnis Untuk Anda

Related Post:

Share this post!

Bookmark and Share

0 comments:

Post a Comment

Disclaimer :
I can not guarantee that the information on my blog is 100% correct..


Don't Forget!Leave Comment Here NO SPAM PLEASE!!

Disclaimer :

I can not guarantee that the information on my blog is 100% correct