Ease: How to set the anti-injection switch in the background

Source: Internet
Author: User

Intermediary transaction http://www.aliyun.com/zixun/aggregation/6858.html ">seo diagnose Taobao guest cloud host technology Hall

The easy to prevent the injection switch is to protect the Web site security role, but the use of more trouble, every time to write to the data, is prohibited, but also to open the upload software changes, then how to put the anti-injection switch is located in the background of the site, so you can control through the background of the site, so as to get rid of the FTP mode? Here we cite an example website: http://www.nanke010.com/

Here's how:

1. Create a new Asp file, such as domain.asp

Content is <% ' If the website channel enables the subdomain function, you need to modify the following settings
Const Enable_subdomain = False ' sub-domain name feature switch true= enabled, false= disabled
Const domainroot = "powereasy.net" site domain name root
Const strsubdomains = "Www|news|shop|soft" ' Host name (sub-domain name) list. For example, to enable ' news.powereasy.net ', here add ' news ', multiple subdomains between a half angle ' | ' Separated

Const Enablestopinjection = True ' Enable anti-SQL injection capability, true to Enabled, false to Disabled%>

Careful netizen may find that these few code is not the root directory under the config.asp inside the top of those lines of code? Yes. The new file is mainly to put this subdomain and SQL anti-injection independent, in order to pass the background of the FSO function to write settings. If not independent, will be injected into the filter code to empty, also completely lost the meaning of the injection.

2, in the conn.asp inside the <!--#include file= "config.asp"--> page did not find the _A5 webmaster Network

Sorry, the page you want to view has no way to find

back to the home page add a line &lt;!--#include file= "domain.asp" to read the relevant settings

3, in the Admin management directory admin_index_left.asp add a plug-in column, the specific location can set their own

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.