There are lot’s of programs that allow ripping website content and mysql databases. All the ripped content transferred to another websites, thanks god we have google that figures out plagiarism by caching dates. Anyway sometimes there are many unnecessary bots of authomatic websites that steal our traffic. Sometimes there is any unwanted spammer or proxy website user that visits our website frequently. htaccess file allows to block unwanted visits by IP.
If your website under construction, you can simply edit .htaccess file to disallow visits to your website.
Here is the code :
<Limit GET POST PUT>
order deny,allow
deny from all
allow from 12.345.67.890
</Limit>
allow from 12.345.67.890 command allows access to your server only from 12.345.67.890 IP address.
You can allow more IP’s to access your website :
<Limit GET POST PUT>
order deny,allow
deny from all
allow from 12.345.67.890
allow from 890.67.345.12
</Limit>
This practice is good in case you are modifying your website and don’t want others to see the process, other reason to use it when you have some webpage visible only to allowed IP’s – your customers.