Dynadot

Making a domain private?

Spaceship Spaceship
Watch
Impact
11,350
Besides using robots.txt to block all bots what else can we do to block all rogue bots plus all likely visitors except myself?

I recall seeing somewhere on the web a recommendation to change .htaccess to block all the know rogue bots, one-by-one. Does anybody have that link?

How to password protect the website, securely?

Anything else I can do?
 
0
•••
The views expressed on this page by users and staff are their own, not those of NamePros.
Bots/scrapers will ignore your robots file and using htaccess to block them all will really slow down access.

You can password protect the public_html directoy.

Do you have cpanel for your hosting account?

Use these 2 under the security tab:
IP Deny Manager
Password Protect Directories

If you see an IP you want to block, look up the block it is in -- and ban the whole block with IP Deny Manager.

If the IP is owned by baidu or yandex (both very aggressive at indexing you) you can go to their sites and request them to stop indexing your site. It may take them a while to get to your request but they usually will stop after a few weeks.
 
0
•••
if ($_SERVER['REMOTE_ADDR'] == 'my ip address here') {
content
}

Maybe try that.

Or...

Order Deny,Allow
Deny from all
Allow from xxx.xxx.xxx.xxx

in the .htaccess
 
Last edited:
0
•••
if ($_SERVER['REMOTE_ADDR'] == 'my ip address here') {
content
}

Maybe try that.

Or...

Order Deny,Allow
Deny from all
Allow from xxx.xxx.xxx.xxx

in the .htaccess

Good Share bro.
 
0
•••
0
•••
  • The sidebar remains visible by scrolling at a speed relative to the page’s height.
Back