Deleting/Deactivating website
Autor: M. Dino
Visited 1671,
Followers 1,
Udostępniony 0
Hello,
I was wondering how it is possible to deactivate a website and its contect once it has been uploaded to the Internet? Is there a way to deactivate the website so it is no longer visible to the public?
Thanks in advance,
M. Dino
Posted on the
Hello M. Dino,
Yes, if you want to keep the files on the server whilst keeping the general public out then put the following line in an .htaccess file in the root folder of your WebSite X5 project on the server:
deny from all
You can restore access at any time by simply deleting the line, or deleting the entire .htaccess file (if applicable)
If you are finished completely with the website and want to free space on the server then you can quickly bulk delete all your project files and folders using any FTP client.
Kind regards,
Paul
Autor
Hi Paul,
Thanks for your quick reply. Unfortunately, I'm pretty inexperienced when it comes to this program and the creation of websites in general. That's why I don't really know what a .htaccess file is and where the root folder is located.
Could you please provide me with step-by-step instructions?
Thanks,
M. Dino
Yes, no problem.
You can use a free FTP client to read, write and edit files and folders on your server. I suggest FileZilla:
https://filezilla-project.org/
Open a brand new file using Notepad on your computer. Enter the following text:
deny from all
Then save the file using any filename of your choice (it doesn't matter at this stage) and close it.
Now use FileZilla to upload the file you have just created into the root folder of your WebSite X5 project on the server. The root folder is the folder which has the 'index.html' file inside it. Sometimes you might have an 'index.php' file instead, but either way it doesn't matter. FileZilla gives you a directory view of all the files and folders on your server, so it should not be difficult to find the correct one.
Once you have uploaded the file, right-click on it from within the FileZilla explorer view, and select 'Rename' - change the filename to the following, exactly as written, with no file extension:
.htaccess
And that's all there is to it... you should now find that if you (or anyone else) attempts to visit your site on the web then you will be presented with a 'Forbidden' or 'Access denied' message.
Hope this makes things clearer.
All the best,
Paul
Autor
Thank you so much, Paul.
I will give it a try.
Thanks,
M. Dino