Powershell script to get site title, site owner, site user count and usageAdd-pssnapin Microsoft. sharepoint. powershell-erroraction silentlycontinue $ wburl = read-host "Enter web application URL" $ webapp = Get-spwebapplication $ wburl $ outputpath = read-host "Enter path to save results" Add-content -Path $ outputpa
Because yesterday's server can not access, the afternoon only to repair, to a certain extent, more aggravated the recognition and stability of Baidu has been denied. Tomorrow is Thursday, Baidu should be a big update recently, to see the situation.
The site title is modified to:
Cloud-Habitat community-web production, network programming, server configuration, website production station
Although we position is
Monitoring website 80 Ports
Many times we do not know whether the site 80 port is normal, of course, my previous Shell monitoring site status (continued) This article can also monitor the site, here is just to provide you with another way to monitor the site.
Script conten
A start to build the Chinese blog Alliance, both bloggers remind me to do Web site Daquan maintenance of this kind of website is very troublesome, need a lot of energy to debug some of the aborted site, but also to take the blog Encyclopedia of Pine for examples. Of course, I am also deeply believe that. Some time ago, see Dream Xuan Beauty boke123 Web site Daqua
OPS personnel to ensure the company's website is normalby scripting you canTest it:#!/bin/shfunction usage () {#echo $ "usage:$0 url"Exit 1}function Check_url () {##Thenecho "is OK."Exit 0Elseecho "is fail."Exit 1Fi}function Main () {#UsageFiCheck_url $ #Main $* #Test Site URL Script test site is normal
Applied to: Windows Server 2003, Windows Server 2003 R2, Windows Server 2003 with SP1, Windows Server 2003 with SP2
Iisweb.vbs:IIS Web Site Admin Script
Create, delete, and list Web sites on a server running Windows Server 2003 with Internet Information Services (IIS) 6.0. You can also start, stop, and pause a Web site.
Iisweb.vbs (generally in systemroot\syst
high-end synchronous incremental backup, for our users, choose a suitable for their own, after all, we just need to learn to use and the results can be achieved.
The code is as follows
Copy Code
1, configure Rsync to implement a timed synchronous mirror VPS Site Backup replacement Incremental backup files
2, Linux VPS Auto Sync backup files/database to copy storage
() function can be used to submit the form only after the user has confirmed it. For more information about confirm (), see the Javascript confirm Form submission in the ASP Warrior Web site.
Figure 3: ConfirmButton in action
ConfirmButton uses embedded JavaScript in the button's OnClick event handler, and can also create a function in the client script block of the ConfirmButton OnPreRender () method,
Tags: system access sign XML nload ASC RIP Code callYesterday this blog by the XSS cross-site script injection attack, 3 minutes to fall ... In fact, the attackers attack is very simple, no technical content. can only sigh oneself before unexpectedly completely not guard. Here are some of the records left in the database. In the end, the guy got a script for the
A start to build the Chinese blog Alliance, both bloggers remind me to do Web site Daquan maintenance of this kind of website is very troublesome, need a lot of energy to debug some of the aborted site, but also to take the blog Encyclopedia of Pine for examples. Of course, I am also deeply believe that. Some time ago, see Dream Xuan Beauty boke123 Web site Daqua
This article mainly introduces the cause of the Cross Station script execution vulnerability, forms, hazards, exploits, hidden techniques, solutions, and FAQs (FAQ), because the current information on the execution of Cross-site scripts is not very much, and generally not very detailed, so I hope this article will be able to describe the vulnerability in more detail. Because the time is short, the level is
Website operators for the concept of death chain is not unfamiliar, the site of some data deletion or page revision, etc. are easy to create a dead chain, affecting the user experience does not say, too many dead chain will affect the overall weight or rankings of the site.Baidu Webmaster Platform provides a dead chain submission tool, can be the site of the existence of the Dead chain (protocol dead chain,
The content of this section:The shell script monitors the site for abnormalities and automatically sends an email notification to the administrator if there is an exception.The script detection process is as follows:1, check whether the Http_code returned by the site equals 200, if not 200 is considered an exception.2,
:/inetpub/adminscripts> adsutil. vbs set w3svc/99/root/path E:/html // set the root working directory of 99 sites
Path: (string) "E:/html"
C:/inetpub/adminscripts> adsutil. vbs set w3svc/99/root/accessread true // set 99 site root readable
Accessread: (Boolean) True
C:/inetpub/adminscripts> adsutil. vbs set w3svc/99/root/accesswrite true // set 99-site root writable
Accesswrite: (Boolean) True
C:/inetpub/ad
open,please check! | Mail-s "Website Notification to ${web_url[i]}" yourname@example.comecho "Failed"Elseecho "' ${web_url[i]} ' is ok!"Fi}
Method two, using Curl to monitor web shell scripts
, because the script's role is to keep access to the given URL at a fixed frequency, when the site is not accessible automatically to set up the mailbox to send an alert message to notify the user. Well, look at the
the Oneinstack one-key package to take a backup script locally, remotely, and regularly back up Web site files/databases in a test machine environment.
First, oneinstack Backup preparation work
The method shared by Chiang in this article is based on the Oneinstack scripting environment, so if other web environments are not available, we can use the corresponding method or manual backup for oth
Website operators for the concept of death chain is not unfamiliar, the site of some data deletion or page revision, etc. are easy to create a dead chain, affecting the user experience does not say, too many dead chain will affect the overall weight or rankings of the site.Baidu Webmaster Platform provides a dead chain submission tool, can be the site of the existence of the Dead chain (protocol dead chain,
. Replace ("Sb. Replace ("Sb. Replace ("Sb. Replace ("Response.Write (sb.) ToString ());}This allows us to allow some HTML tags, and to prohibit dangerous tags.According to Microsoft's recommendations, we want to be cautious about allowing the following HTML tags, because these HTML tags are likely to lead to cross-site scripting attacks.
applets>
body>
embed>
frame>
script>
fra
;","");SB. Replace (" lt; I gt;", "Sb. Replace (" lt;/I gt ;","");Response. Write (sb. ToString ());}
In this way, some HTML tags and dangerous tags are allowed.
According to Microsoft's suggestions, we should be careful to allow the following HTML tags, because these HTML tags may cause cross-site scripting attacks.
Applet>
Body>
Embed>
Frame>
Script>
Frameset>
Html>
IFRAME>
IMG>
Style>
Laye
Script Script Description:
The first step: Add the following code to the
Step Two: Create a new searchsource.htm whose contents are
Value= "http://www.njcatv.net~ Nanjing cable TV website |NJCATV Nanjing Cable TV web page special effects av space News JavaScript
Java Applet Health Bridge ^ provides a full range of information and assistance to the general public in Nanjing *http://www.sina.com.cn~ the mo
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.