Jump to: navigation, search

Blocking visitors from your website


Presently there is no easy tool for this but if you have a professional hosting account with us you can accomplish the same thing by using .htaccess files. Free hosting users cannot use .htaccess files.

You'll need to create a .htaccess file in the directory you want to protect like mywebsite.com/.htaccess and put the following inside:

order deny,allow deny from 11.11.11.11

11.11.11.11 being the IP address of the person you want to block from your site.

Putting the .htaccess file in the top most folder, mywebsite.com/ in this case, will also block them from looking at any subfolders like mywebsite.com/my_pictures/index.html. Alternately you can put the .htaccess file in a subfolder to protect only a portion of your site.

Blocked users will be shown the 403 error page, mywebsite.com/403_forbidden.html, which you can also edit.