• Our team is looking to connect with folks who use email services provided by Plesk, or a premium service. If you'd like to be part of the discovery process and share your experiences, we invite you to complete this short screening survey. If your responses match the persona we are looking for, you'll receive a link to schedule a call at your convenience. We look forward to hearing from you!
  • We are looking for U.S.-based freelancer or agency working with SEO or WordPress for a quick 30-min interviews to gather feedback on XOVI, a successful German SEO tool we’re looking to launch in the U.S.
    If you qualify and participate, you’ll receive a $30 Amazon gift card as a thank-you. Please apply here. Thanks for helping shape a better SEO product for agencies!
  • The BIND DNS server has already been deprecated and removed from Plesk for Windows.
    If a Plesk for Windows server is still using BIND, the upgrade to Plesk Obsidian 18.0.70 will be unavailable until the administrator switches the DNS server to Microsoft DNS. We strongly recommend transitioning to Microsoft DNS within the next 6 weeks, before the Plesk 18.0.70 release.
  • The Horde component is removed from Plesk Installer. We recommend switching to another webmail software supported in Plesk.

Question how can I prevent access to specific part of a website and deny it from showing in google search

elaa

Basic Pleskian
Hi, I have a website that is already published and I want to add a new website application to this site but it needs to be hidden from everyone only with specific IP address and It should not be published in google searches
how can I do this in plesk
 
Are you aware of the consequences? It means that your Google ranking can drop sharply and to the point where your website is kicked out of the index for manipulation tactics. Generally speaking: When you hide something from Google that normal users can see, your website will be punished by Google.

If you want to do that, you could block Google from reading parts of your site by adding some .htaccess rules that treat Google like it was a bad bot. For example create an .htaccess file in the directory that Google shall not be able to read and put this into it:

Code:
RewriteEngine On
RewriteBase /
RewriteCond %{HTTP_USER_AGENT} ([Gg]ooglebot) [NC] 
RewriteRule .* - [F]

It will keep all requests out that use "googlebot" as the bot name in the current directory (where the .htaccess file is located) and all descending directories. However, when Google shows up with an anonymous ip, it will still be able to read the directory content, and you will not be able to keep them from checking with IPs that you don't know. The better solution is definitely to let them spider the site and tell them through a robots.txt what pages and directories you don't want them to include in their index.
 
Are you aware of the consequences? It means that your Google ranking can drop sharply and to the point where your website is kicked out of the index for manipulation tactics. Generally speaking: When you hide something from Google that normal users can see, your website will be punished by Google.

If you want to do that, you could block Google from reading parts of your site by adding some .htaccess rules that treat Google like it was a bad bot. For example create an .htaccess file in the directory that Google shall not be able to read and put this into it:

Code:
RewriteEngine On
RewriteBase /
RewriteCond %{HTTP_USER_AGENT} ([Gg]ooglebot) [NC]
RewriteRule .* - [F]

It will keep all requests out that use "googlebot" as the bot name in the current directory (where the .htaccess file is located) and all descending directories. However, when Google shows up with an anonymous ip, it will still be able to read the directory content, and you will not be able to keep them from checking with IPs that you don't know. The better solution is definitely to let them spider the site and tell them through a robots.txt what pages and directories you don't want them to include in their index.


Thank you for everything but this is really complicated for me, I just wanted my web app to be accessed only when using work computers
 
Now that is a totally different request.

If your work computers have a static ip address (e.g. their internet router has a static ip address to the outside world), you could instead simply use the ip address limiter on the Apache & Nginx settings page to block access to your website.
 
Now that is a totally different request.

If your work computers have a static ip address (e.g. their internet router has a static ip address to the outside world), you could instead simply use the ip address limiter on the Apache & Nginx settings page to block access to your website.
like so ?
Code:
location ^~ /exampledirectory {
allow 203.0.113.2;
deny all;
}
 
For subdirectories, yes, maybe. For the whole site, it is much easier to use the "Apache & nginx settings" and fill the "Deny access to the site" fields.
 
For subdirectories, yes, maybe. For the whole site, it is much easier to use the "Apache & nginx settings" and fill the "Deny access to the site" fields.
Thank you for all of your help I just need to deny access to a part of the site and the rest of the site should be visible to all
 
Back
Top