使用ASP.NET和VB的网站安全 [英] Website Security using asp.net with vb

查看:59
本文介绍了使用ASP.NET和VB的网站安全的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如何通过禁止用户在使用FTP上传网站时访问网站来保护网站

How to secure website by disallowing user to access website at the time of uploading website by using FTP

推荐答案

首先,我可以说是,创建一个正在建设中的页面",并将其设置为您通过FTP上传新内容时的启动页面.

除此之外,如果您希望自动执行此操作,请使用两个按钮制作一个页面
1)开始上传新网站
2)上传完成

此页面仅供管理员使用.浏览此页面,然后单击开始上传新站点"按钮.后面会有一个代码,可将每个请求的用户重定向到正在建设的页面.

完成后,单击上传完成"按钮,站点将按原样工作. :thumbsup:
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:




您只需要做一件事.使用"app_offline.html".根据需要在html中编写.首先将此文件上传到服务器,然后上传其余文件.
用户仅获得app_offline.html fil,直到该文件在服务器上为止.完成上传后,请删除此文件.
有关更多详细信息,请搜索.我认为是(app_offline.html或仅offline.html)


问候,
umesh
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


您可以尝试以下方法:

显示默认页面而不是显示正在建设中"的主页.



禁止访问除管理员以外的所有用户.
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.


这篇关于使用ASP.NET和VB的网站安全的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆