Click here to Skip to main content
15,900,816 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
How to secure website by disallowing user to access website at the time of uploading website by using FTP
Posted

Well, at the first thought, I can say is, make a "Under construction page" and set it as the startup page for the time you are upload the new content through FTP.

Other than that if you wish to automate this, make a page with two buttons
1) Start Uploading new site
2) Uploading done

This page will be just for admin. Browse this page and click "Start Uploading new site" button. There will be a code behind to redirect user to under construction page for every request.

After you are done, click the Uploading done button and site will work as it is. :thumbsup:
 
Share this answer
 
v2
Comments
Nithin Sundar 3-Feb-11 2:04am    
The automation part sounds nice!
Wild-Programmer 3-Feb-11 2:09am    
Thanx Nithin :)
Hi,

You need to just doing one thing only. Use "app_offline.html". Write as you want to in html. First upload this file on server and than upload rest files.
User get only app_offline.html fil till this file on server. When you finished your uploading than remove this file.
For further detail search on that. I think it is (app_offline.html or only offline.html)


Regard,
umesh
 
Share this answer
 
v2
Comments
Wild-Programmer 3-Feb-11 2:16am    
Cool new concept. Good one.
soni uma 3-Feb-11 2:35am    
Thanx ajay. It is not new concept. It is too old. But so many people not knowing about that.
You can try something like:

Displaying a default page instead of the home page which says "Under construction".

or

Disabling access to all users except the admin.
 
Share this answer
 

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