网页自动生成(电脑开机会自动桌面上生成一个网站,且自动弹出网页怎么解决)

本文目录
电脑开机会自动桌面上生成一个网站,且自动弹出网页怎么解决
这是因为有一些网页中含有恶意代码(俗称流氓网页),你无意登录后,会修改计算机的注册表键值.你只要打开浏览器就会弹这个网页.
解决办法:1.手工修改注册表,需要一定的动手能力.
2.用软件解决,常用的有"上网助手"或一些杀毒软件.
转摘:网页恶意代码的预防
(瑞星公司)
1、要避免被网页恶意代码感染,首先关键是不要轻易去一些自己并不十分知晓的站点,尤其是一些看上去非常美丽诱人的网址更不要轻易进入 ,否则往往不经易间就会误入网页代码的圈套。
2、当运行IE时,点击“工具→Internet选项→安全→ Internet区域的安全级别”,把安全级别由“中”改为“高” 。
3 、因为这一类网页主要是含有恶意代码的ActiveX或Applet、 JavaScript的网页文件 ,所以在IE设置中将ActiveX插件和控件、Java脚本等全部禁止就可以大大减少被网页恶意代码感染的几率。具体方案是:在IE窗口中点击“工具”→“Internet选项”,在弹出的对话框中选择“安全”标签,再点击“自定义级别”按钮,就会弹出“安全设置”对话框,把其中所有ActiveX插件和控件以及与Java相关全部选项选择“禁用”。但是,这样做在以后的网页浏览过程中有可能会使一些正常应用ActiveX的网站无法浏览。
4、而对于使用Windows98的计算机用户,请打开 C:\WINDOWS\JAVA\Packages\CVLV1NBB.ZIP,把其中的“ActiveXComponent.class”删掉;对于使用Windows Me的计算机用户,请打开C:\WINDOWS\JAVA\Packages\5NZVFPF1.ZIP,把其中的“ActiveXComponent.class”删掉。
5、一定要在计算机上安装网络防火墙,并要时刻打开“实时监控功能”。
6、虽然经过上述的工作修改回了标题和默认连接首页,但如果以后某一天又一不小心进入这类网站就又得要麻烦了。这时你可以在IE浏览器中做一些设置以使之永远不能进入这类站点:
打开IE属性,点击“工具”→ “Internet选项 ”→“安全”→“受限站点”,一定要将“安全级别”定为“高”,再点击“站点”,在“将Web站点添加到区域中”添加自己不想去的网站网址,再点击“添加”,然后点击“应用”和“确定”即可正常浏览网页了。
7、设置注册表器中的相关项值:
(1)运行打开注册表器命令regedit.exe进入注册表;
(2)在HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Policies\System下,增加名为DisableRegistryTools的DWORD值项,将其值改为“1”,即可禁止使用注册表器命令regedit.exe。
因为特殊原因需要修改注册表,可应用如下解锁方法:
用记事本一个任意名的.reg文件,其中的内容如下:
REGEDIT4
HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Policies\System
"DisableRegistryTools"=dword:00000000
双击运行recover.reg即可。
参考资料:new!内含卡巴斯基反病毒软件v6.0正式版
如何自动生成网页
其实各种动态网页的技术:ISAPI,NSAPI,CGI,ASP,ASP+Com 都可以实现,各种
技术都有自己的优点,所以要根据你的具体情况来选择,不过CGI现在已经不太好了,ISAPI,NSAPI通用性不好(我对它们一直有偏见),如果你读文本,并进行信息提取的操作比较复杂,建议你用ASP+COM的方式
特点:
自动生成网页,支持图片(gif\jpg)、音频(mp3\wma\mid)、视频(rm\asf\wmv\avi\mpg)、FLASH(swf)、下载类(exe\rar\zip\...)文件;可进行全站一次性生成,也可分目录生成;支持多级子目录生成(级数不限);支持中文目录名、文件名;集成和彩秀的功能接口;全站生成的文件都调用3个根目录下的htm,方便广告代码的投放和更换。
特别适用于FTP服务器的网页化,网吧、宿舍、办公室等局域网的娱乐资料共享等用途。
生成方法:
用IE访问生成文件fjxnpic.asp?f=520既可,520是重生成所需密码,在fjxnpicinc.asp中定义。
对使用者要求
请使用前详细阅读fjxnpicinc.asp文件,并根据自己的需要修改其中的参数!
会使用FTP,在网上有空间既可。
可看懂Html\CSS\JS的朋友,可以自己修改站点根目录下fjxn_pic前缀的文件(包括htm,js,css),既可定制出自己所需的页面。
可看懂ASP程序的朋友,可以自己修改fjxnpic.asp文件,更精确的控制所生成的的htm文件。
本程序的设计思路很简单:读取文件或目录-》暂存于数组-》根据数组生成htm页面。
什么是虚拟主机租用、服务器整机租用,网页自动生成望详细解释
虚拟主机,是指主机提供商将一台主机分成多个空间租用给用户。
用户所购买的这个空间就叫虚拟主机
服务器整机租用,顾名思义,就是租用整台的服务器,这整台服务器 的使用权归你,也有租用送产权的,产权是指服务器的所有权。 有了产权,就可以将这台服务器搬回家。
这样的站点有一个后台程序,会根据访问者访问的链接自动生成相应的htm文件,让访问者的浏览器读取。好像华军软件园就是这样的站点,这种站点我觉得可以节约服务器运算资源。
动态网页如何自动生成html文件
using System;
using System.Data;
using System.Configuration;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Web.UI.HtmlControls;
using System.IO;
using System.Text;
/// 《summary》
/// WriteFile 的摘要说明
/// 《/summary》
public class WriteFile
{
public WriteFile()
{
}
public static bool createHtml(string stroldHtml,string strModeFilePath,string strPath)
{
bool flag = false;
StreamReader sr = null;
StreamWriter sw = null;
string filepath = HttpContext.Current.Server.MapPath(strModeFilePath);
Encoding code = Encoding.GetEncoding("gb2312");
string s = string.Empty;
try
{
sr = new StreamReader(filepath,code);
s = sr.ReadToEnd();
}
catch (Exception ex)
{
throw ex;
}
finally
{
sr.Close();
}
try
{
for (int i = 0; i 《 strnewsHtml.Length; i++)
{
s = s.Replace(stroldHtml);
}
sw = new StreamWriter(HttpContext.Current.Server.MapPath(strPath), false, code);
sw.Write(s);
flag = true;
}
catch (Exception ex)
{
flag = false;
throw ex;
}
finally
{
sw.Flush();
sw.Close();
}
return flag;
}
public static bool UpdateHtmlPage(string strEndHtml, string strHtml)
{
bool Flage = false;
StreamReader ReaderFile = null;
StreamWriter WrirteFile = null;
string FilePath = HttpContext.Current.Server.MapPath(strHtml);
Encoding Code = Encoding.GetEncoding("gb2312");
string strFile = string.Empty;
try
{
ReaderFile = new StreamReader(FilePath, Code);
strFile = ReaderFile.ReadToEnd();
}
catch (Exception ex)
{
throw ex;
}
finally
{
ReaderFile.Close();
}
try
{
int intLengTh = strNewsHtml.Length;
for (int i = 0; i 《 intLengTh; i++)
{
int intStart = strFile.IndexOf(strStartHtml.Length;
int intEnd = strFile.IndexOf(strEndHtml);
string strOldHtml = strFile.Substring(intStart, intEnd - intStart);
strFile = strFile.Replace(strOldHtml, strNewsHtml);
}
WrirteFile = new StreamWriter(FilePath, false, Code);
WrirteFile.Write(strFile);
Flage = true;
}
catch (Exception ex)
{
throw ex;
}
finally
{
WrirteFile.Flush();
WrirteFile.Close();
}
return Flage;
}
}
调用公共类:
----------------------------------------------------------------------------
protected void Button2_Click(object sender, EventArgs e)
{
string NewsTitle = this.TextBox1.Text;
string NewsKindName = this.DropDownList1.SelectedItem.Text;
string NewsBody = this.WebEditor1.Text;
DateTime PubTime = DateTime.Now;
string UserName = Session.ToString();
Response.Write(NewsKindName);
string { NewsTitle, NewsKindName, NewsBody, PubTime.ToString(), UserName };
string { "@Title", "@NewsKInd", "@NewsBody", "@PubTime", "@UserName" };
string strFileName = DateTime.Now.ToString("ddhhmmss") + ".html";
string strFilePath = string.Format("NewsHtml/{0}", strFileName);
try
{
if (WriteFile.createHtml(strNewsHtml, strOldHtml, "mode.htm", strFilePath))
{
this.Label1.Text = "生成成功!";
}
else
{
this.Label1.Text = "生成失败!";
}
}
catch
{
this.Label1.Text = "生成失败!";
}
}
protected void Button3_Click(object sender, EventArgs e)
{
string{"游!"};
string{"《!-- start --》"};
string{"《!--end--》"};
if (WriteFile.UpdateHtmlPage(strNewsHtml, strStartHtml, strEndHtml, "NewsHtml/02011139.html"))
{
this.Label1.Text="生成首页成功!";
}
else
{
this.Label1.Text="生成首页失败!";
}
}
新建文件夹NewsHtml,生成html文件放在里面
-----------------------------------------------------------
增加一个模板文件
《html xmlns="http://www.w3.org/1999/xhtml" 》
《head》
《title》无标题页《/title》
《/head》
《body》
《table border="1" cellpadding="0" cellspacing="0" style="width: 522px; height: 338px"》
《tr》
《td align="center" colspan="2"》
@Title《/td》
《/tr》
《tr》
《td align="center" colspan="2"》
发布人:@UserName 发布时间:@PubTime 新闻类别:@NewsKInd《/td》
《/tr》
《tr》
《td colspan="2"》
@NewsBody《/td》《/tr》《tr》
《td style="WIDTH: 100px"》
《/td》《td style="WIDTH: 100px" 》
《/td》《/tr》《/table》《/body》《/html》

更多文章:
湖北十堰爆炸事故原因(湖北十堰,发生爆炸事故致11死,酿成这起惨剧的起因是什么)
2026年10月11日 05:30
安徽六安一女子在奥迪车内被殴打扒衣,警方称是感情纠纷,案件会如何定性?安徽六安教师讨薪事件真相是什么
2026年10月11日 04:40








