Block users through HTML






Create a .htaccess file and add the following code--changing the IPs to suit your needs--each command on one line each:

order allow,deny
deny from 123.45.6.7
deny from 012.34.5.
allow from all


You can deny access based upon IP address or an IP block. The above blocks access to the site from 123.45.6.7, and from any sub domain under the IP block 012.34.5. (012.34.5.1, 012.34.5.2, 012.34.5.3, etc.)

You can also set an option for deny from all, which would of course deny everyone. You can also allow or deny by domain name rather than IP address (allow from .friendsite.com works, etc.)

NOTE: Numerous security actions can be taken from your control panel to keep parts of your website secure.
  • 1 utilizatori au considerat informația utilă
Răspunsul a fost util?

Articole similare

Limiting your search engine results

Various search engines such as Google have what are called "spiders" or "robots" continually...

Security Measures on Servers

Numerous hours of extensive research is taken by all of our HoboHost staff to ensure our servers...

Why Wont My Website Work in China?

The government of China regulates all the websites that can be viewed by the public. They often...

Why can't I access my website from my IP address?

Not able to view your website from your IP address? Sounds like our Firewall has blocked your IP...

Wordpress HTTP Authentication Added

Your Wordpress installation had HTTP authentication added due to brute-force attacks on...