Click here to Skip to main content
15,867,330 members
Please Sign up or sign in to vote.
1.00/5 (2 votes)
I have a wordpress website and I want to make my website only viewable and accessible for people using a PC and prevent user withe phones and tablets or any other devices from finding, seeing or atleast accessing my website. What is the best way to achieve that?

What I have tried:

Nothing yet,
Nothing yet
,
Nothing yet
,
Nothing yet
Posted
Updated 22-Jan-20 2:51am
Comments
Nelek 22-Jan-20 4:09am    
I don't think you can avoid it. In the moment search engine takes it into the index... you are out.
Accesing... might be a possibility, but finding... you can't stop google (at least not without paying for it)

Pretty much, you can't - if nothing else it's pretty simple to spoof the User Agent Strings which are what tells you the capabilities: How to Change Your Browser’s User Agent Without Installing Any Extensions[^]
I changed mine to LCARS for a while, just to see is any systems really look too closely...

And Chrome is phasing them out anyway as they reveal too much "personal information": Google to phase out user-agent strings in Chrome | ZDNet[^] so any solution you create now based on them will have a very short life span!

In addition, you would have to decide "what is a PC and what isn't?"
Win 8 and 10 ran on MS phones (all ten they sold, IIRC), and my Surface is a Tablet some of the time, and it runs Win10 as well.
What about VMs? Do they count? VirtualBox runs on MAC, and WINE will run Windows on an Android device ...
 
Share this answer
 
Comments
CPallini 22-Jan-20 7:24am    
5.
There is no foolproof way to identify what type of device is accessing the web site.
You can try looking at the user-agent or device capabilities; but this is known to have problems.

Read through this article, and you can see some of the problems there are with related code. If you should decide to go ahead with your project, the code here may help you if you know how to integrate it
Browser detection using the user agent - HTTP | MDN[^]
 
Share this answer
 
I have to ask why would you want to do that?

- If you are concerned about how it might look on other devices then consider reactive technologies such as Bootstrap[^]

- If you're concerned about who might be accessing it perhaps an IntRAnet might be more appropriate - How To Create An Intranet: A Beginner’s Guide[^]

- If you're concerned that your website won't work unless there is a specific tool or operating system in place then you're going about your project the wrong way and it probably should not be a "website"
 
Share this answer
 
v2

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900