1. This website uses cookies to improve service and provide a tailored user experience. By using this site, you agree to this use. See our Cookie Policy.
    Dismiss Notice

How to prevent others from seeing my site?

Discussion in 'Blogging' started by EternalFun, Nov 3, 2018.

Tags:
  1. EternalFun

    EternalFun Power Member

    Joined:
    Sep 4, 2018
    Messages:
    560
    Likes Received:
    100
    Gender:
    Male
    Hi, I'm on a shared hosting and I believe other people on my hosting can see my site and the shared IP.

    I don't want them or anyone to see my site. I have already checked that option in wp-admin settings to not allow my site to be indexed. In what ways I can prevent everyone from seeing my site URL and IP?

    Even if they or anyone from anywhere somehow get to know my site URL, I want them to see nothing and just a blank page or something like that.

    How to do?
     
  2. ThisIsMyLife

    ThisIsMyLife Regular Member

    Joined:
    Apr 21, 2018
    Messages:
    491
    Likes Received:
    408
    Gender:
    Male
    Cloudflare for covering your IP. For your site address, I don't see any point from hiding it.
     
  3. EternalFun

    EternalFun Power Member

    Joined:
    Sep 4, 2018
    Messages:
    560
    Likes Received:
    100
    Gender:
    Male
    Like I said even if someone gets to know my site url, I want them to see a blank page or something like that on the front end when they try to visit?
     
  4. redarrow

    redarrow Elite Member

    Joined:
    Apr 1, 2013
    Messages:
    10,617
    Likes Received:
    3,097
    so are you say you want to see the site only for know untill ready to go public?

    correct ?
     
  5. ThisIsMyLife

    ThisIsMyLife Regular Member

    Joined:
    Apr 21, 2018
    Messages:
    491
    Likes Received:
    408
    Gender:
    Male
    Then set a blank page and redirect your root domain to it using any Plugin
     
  6. redarrow

    redarrow Elite Member

    Joined:
    Apr 1, 2013
    Messages:
    10,617
    Likes Received:
    3,097
    add a new .htaccess

    add this to it.

    <Files file.ext>
    Order deny,allow
    Deny from all
    Allow from 127.0.0.1
    Allow from 127.0.0.2
    </Files>


    this will allow you to only view that website only , untill you delete the new htaccess file.

    gd luck.
     
    • Thanks Thanks x 2
  7. littlewebdragon

    littlewebdragon Jr. VIP Jr. VIP

    Joined:
    Dec 30, 2007
    Messages:
    2,121
    Likes Received:
    1,488
    Occupation:
    Occupation
    Location:
    Location
    Something like this should do inside of your .htaccess file:

    Code:
    order deny,allow
    deny from all
    allow from 127.0.0.1
    If you need more IP's to access to your website (your own?) just add it below in
    Code:
    order deny,allow
    deny from all
    allow from 127.0.0.1
    allow from 111.222.111.222 #your IP goes here
    Posted at the same time as @redarrow but yeah that is it.
     
    • Thanks Thanks x 1
    Last edited: Nov 3, 2018
  8. EternalFun

    EternalFun Power Member

    Joined:
    Sep 4, 2018
    Messages:
    560
    Likes Received:
    100
    Gender:
    Male
    Thanks a lot mate and yes only I want to view that site only and no one else should be able to. :)

    Thanks to you too mate :)
     
  9. gbugmenot

    gbugmenot Jr. VIP Jr. VIP

    Joined:
    Jan 2, 2012
    Messages:
    360
    Likes Received:
    116
    First of all, if you block crawlers than even google won't be able to see your site and index it.

    If you are just using the shared server as a test server than its better to use a local host like wamp or xampp.
     
    • Thanks Thanks x 1
  10. MSRP

    MSRP Regular Member

    Joined:
    Dec 29, 2007
    Messages:
    435
    Likes Received:
    100
    Have you try delete your /home or public_html folder. It should work.
     
  11. Black catty

    Black catty Junior Member

    Joined:
    Nov 3, 2018
    Messages:
    114
    Likes Received:
    22
    Gender:
    Female
    Occupation:
    student
    Location:
    corona
    wp-admin just give you authority to stop for indexing or not if you want to just access by yourself and site is disappear all over the work then find .htaccess in your file manager and write
    ---------------------------------------------------
    <Limit GET POST>
    order deny,allow
    allow from (your ip)
    deny from all
    </Limit>
    ---------------------------------------------------
     
  12. SpoonFeeder

    SpoonFeeder BANNED BANNED Jr. VIP

    Joined:
    Mar 19, 2017
    Messages:
    1,608
    Likes Received:
    1,987
    Gender:
    Male
    [​IMG]
    [​IMG]
     
  13. mrtqzs

    mrtqzs Newbie

    Joined:
    Feb 9, 2009
    Messages:
    20
    Likes Received:
    12
    Gender:
    Male
    Simply search for the plugin "Coming Soon Page & Maintenance Mode"

    You can add a blank page to be shown to everyone besides you when you're logged in.
     
    • Thanks Thanks x 1
  14. BetterBlogsMedia

    BetterBlogsMedia Jr. VIP Jr. VIP

    Joined:
    Jul 20, 2018
    Messages:
    113
    Likes Received:
    4
    I think you cannot block peoples IP address is but I've never done this so I'm not sure