How to block an IP address from accessing your website.

If you would like to block an IP address from accessing your website you can do so via the web.config file in your websites wwwroot.

Place the following code within the <system.webServer> tags in the web.config file:

<security>
	<!-- line allows everyone, except below IP-->
	<ipSecurity allowUnlisted="true">
		<clear/>
		<!-- blocks the specific IP -->
		<add ipAddress="xx.xx.xx.xx"/>
	</ipSecurity>
</security>

replacing xx.xx.xx.xx with the valid IP address.

  • ban, block, ip, block ip, firewall, ban ip, ip address
  • 14 Users Found This Useful
Was this answer helpful?

Related Articles

How to backup and download your website files

Clients can create a zip archive of their space files ready for download in our control panel:...

How to enable GZIP compression on your website

You can enable GZIP compression on your website is using by following the steps below: Login...

How to deploy your website files from a zip file.

Clients can deploy their website files from a Zip file in our control panel. To do so please...

How to stop or start your website.

You can stop and start websites in our control panel. To do so please follow the instructions...

How to setup a scheduled task

You can set scheduled tasks (CRON) by following the steps below: Login to your hosting control...