Turning OFF my WordPress Site?

Turning OFF my WordPress Site?

I have the Admin login to my WordPress site, but I need to turn it off.

I do not care where the domain points afterwards.

How do I "unpublish" the site?

curiouswebsterSoftware EngineerAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Robert GranlundCommented:
Use a "Coming Soon" Plugin to turn it off.
"Coming Soon Page & Maintenance Mode by SeedProd"
curiouswebsterSoftware EngineerAuthor Commented:
And what if I just want it to go dark?
Daniel PineaultPresident / Owner CARDA Consultants Inc.Commented:
Depends on your needs, but I agree with rgranlund just implement a 'coming soon'/'under maintenance' plugin.
another choice is to delete the files/delete wordpress and the MySQL database, or another option is to rename the index file and simply replace it with a blank html page of your choosing.
OWASP: Threats Fundamentals

Learn the top ten threats that are present in modern web-application development and how to protect your business from them.

Daniel PineaultPresident / Owner CARDA Consultants Inc.Commented:
To go dark, just delete everything.  Use an FTP client to delete all the files, use PhpMyAdmin to delete the database.
curiouswebsterSoftware EngineerAuthor Commented:
But I do not want to delete the files, yet...

what if I just want the domain to point to nowhere? That is a change to GoDaddy.
Robert GranlundCommented:
Ah.  Yes, change the DNS record at godaddy to point to its servers or else where.
Terry WoodsIT GuruCommented:
Pointing the A record for the domain elsewhere may still leave the website accessible directly using the IP address (possibly combined with a hosting account username).

Using a coming soon page plugin would close off most of the site, but the login page would still be active (and still vulnerable to brute force attacks). New security vulnerabilities may still be a problem, if they were particularly severe.

You can completely block access to the website by editing the .htaccess file in the root folder of the WordPress installation, and adding the following lines, or something similar:

ErrorDocument 503 '<h1>This site is currently closed.</h1>'
RewriteEngine On
RewriteRule .* - [R=503,L]

Open in new window

David FavorLinux/LXD/WordPress/Hosting SavantCommented:
To go dark, delete your DNS records completely.

Likely you'll first delete your related database + files.

Tip: Make a backup first, in case you'd like to resurrect your site at some future point.
Dr. KlahnPrincipal Software EngineerCommented:
David is right.  The simplest solution, and one that requires no changes to your web site configuration, is to turn off DNS resolution for the site or point it at a parking page.

Side note:  This by itself won't get the site off the web.  Unless you went to the effort of putting "nocache, noarchive" META tags on all pages, it will still exist in search engine caches for several months, and in the Wayback Machine forever.  If you want the site permanently gone you must contact the Wayback Machine and tell them to remove their archival copies.


Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
Julian HansenCommented:
Option 1
Rename your .htacess file to .htaccess.deprecated (or similar)
Create a new .htacces file
RewriteEngine on
RewriteRule . - [F,L]

Open in new window

Option 2

1. Rename your index.php file to index.php.deprecated (or similar)
2. Create a new index.php file with nothing in it (or with whatever you want people to see).

Option 3
1. Create a subfolder in your site
2. Copy your website to that folder
3. Remove from the root
4. Change the permissions on the subfolder that don't allow access

There are many more options but the above keep your site intact
David FavorLinux/LXD/WordPress/Hosting SavantCommented:
Read over Dr. Klahn's comment carefully as he brings up a good point.

If you delete you DNS + site database + site content, then the site is only unpublished for new visits.

Systems like Archive + Google will still cache results... well... pretty much forever...

To get rid of all traces, including Archive + Google, then you must leave your site online + start injecting code to instruct companies like Archive + Google to delete all your content from their databases.

After you search their databases + all traces of your site are gone, then do the DNS trick + site files/database deletion trick.

This will cause your site to be gone for both new visits + any lookups of previous content.
curiouswebsterSoftware EngineerAuthor Commented:
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Web Development

From novice to tech pro — start learning today.