巧用组策略限制访问网站

大家如果想禁止公司的员工或者家长禁止孩子访问某些网站,可以用组策略来实现,不用再去花费金钱去购买网络监控软件或者防火墙等产品。

  组策略是微软开发的非常实用的网络管理控制软件,在每台电脑上安装操作系统是就已经安装了,无需另外安装,只需简单的配置就可以了。方法如下:

点开始--》运行 输入 gpedit.msc如下图,点 确定

巧用组策略限制访问网站

确定后见下图

巧用组策略限制访问网站

点开左侧栏的计算机配置下的--》 Windows设置 --》安全设置 --》IP安全策略,在本地计算如下图

巧用组策略限制访问网站

在IP安全策略,在本地计算机处 右键,选创建IP安全策略---》见下图

巧用组策略限制访问网站

点下一步,起个名字,比如我们限制访问新浪网,只是打个比方,这里可以输入你要限制访问的网站名。见下图

巧用组策略限制访问网站

描述可以不写,点击下一步,默认的勾选上,见下图

巧用组策略限制访问网站

一路默认,点完成就可以,见下图

巧用组策略限制访问网站

见下图右侧栏

巧用组策略限制访问网站

双击右侧 限制新浪网,见下图

巧用组策略限制访问网站

点击添加,见下图

巧用组策略限制访问网站

选下一步,见下图

巧用组策略限制访问网站

默认,点下一步,见下图

巧用组策略限制访问网站

选所有网络连接,点下一步

巧用组策略限制访问网站

点击添加,见下图

巧用组策略限制访问网站

输入名称,限制访问新浪网,点击添加

巧用组策略限制访问网站

点下一步

巧用组策略限制访问网站

输入描述,点下一步,源地址处选任何IP地址,见下图

巧用组策略限制访问网站

点下一步,目标地址,选一个特定的DNS名称,主机名,输入:www.sina.com.cn见下图

巧用组策略限制访问网站

点下一步,可以看见解析出好多新浪网的ip地址,选是,见下图

巧用组策略限制访问网站

巧用组策略限制访问网站

点下一步,完成见下图

巧用组策略限制访问网站

见下图

巧用组策略限制访问网站

点确定,返回到如下图

巧用组策略限制访问网站

选中限制访问新浪网,点下一步,见下图

巧用组策略限制访问网站

选 限制,点下一步,完成。

巧用组策略限制访问网站

确定,应用后,如下图

巧用组策略限制访问网站

可以看见右侧栏有限制访问新浪网,先选中,然后右键指派就可以了,策略已指派处显示是,就ok了

至此都完成了,要使组策略生效,还要重启计算机。重启计算机后大约过一段时间,你上新浪网就打不开网页了

多说一句,windows组策略的功能非常强大,可以限制使用本地磁盘,光驱,优盘等,对于公司可以配合域控制器,用域管理,不用每台都设置了,只需要在域控制器上设置组策略就可以了,以后篇章再介绍如何组建域环境网络。如有疑问,可以和我QQ交流。我的QQ:476049740,加时注明新浪博客。

 



 







 



 



 



 







 







 











( ! ) Warning: count(): Parameter must be an array or an object that implements Countable in /var/www/vhosts/shan.info/httpdocs/templates/gk_publisher/html/com_k2/templates/default/item.php on line 169
Call Stack
#TimeMemoryFunctionLocation
10.0003397720{main}( ).../index.php:0
20.03541348080Joomla\CMS\Application\SiteApplication->execute( ).../index.php:49
30.03541348080Joomla\CMS\Application\SiteApplication->doExecute( ).../CMSApplication.php:196
40.12732791320Joomla\CMS\Application\SiteApplication->dispatch( $component = ??? ).../SiteApplication.php:233
50.12772815720Joomla\CMS\Component\ComponentHelper::renderComponent( $option = 'com_k2', $params = ??? ).../SiteApplication.php:194
60.12822871072Joomla\CMS\Component\ComponentHelper::executeComponent( $path = '/var/www/vhosts/shan.info/httpdocs/components/com_k2/k2.php' ).../ComponentHelper.php:377
70.12822888128require_once( '/var/www/vhosts/shan.info/httpdocs/components/com_k2/k2.php ).../ComponentHelper.php:402
80.13193022800K2ControllerItem->execute( $task = '' ).../k2.php:64
90.13193022800K2ControllerItem->display( $cachable = ???, $urlparams = ??? ).../BaseController.php:710
100.13453046048K2ControllerItem->display( $cachable = TRUE, $urlparams = ['id' => 'INT', 'print' => 'INT', 'lang' => 'CMD', 'Itemid' => 'INT', 'm' => 'INT', 'amp' => 'INT', 'tmpl' => 'CMD', 'template' => 'CMD'] ).../item.php:78
110.13453046048K2ControllerItem->display( $cachable = TRUE, $urlparams = ['id' => 'INT', 'print' => 'INT', 'lang' => 'CMD', 'Itemid' => 'INT', 'm' => 'INT', 'amp' => 'INT', 'tmpl' => 'CMD', 'template' => 'CMD'] ).../controller.php:19
120.13523053184Joomla\CMS\Cache\Controller\ViewController->get( $view = class K2ViewItem { public $document = class Joomla\CMS\Document\HtmlDocument { public $_links = [...]; public $_custom = [...]; public $template = NULL; public $baseurl = NULL; public $params = NULL; public $_file = NULL; protected $_template = ''; protected $_template_tags = [...]; protected $_caching = NULL; private $_html5 = NULL; public $title = '巧用组策略限制访问网站'; public $description = '大家如果想禁止公司的员工或者家长禁止孩子访问某些网站,可以用组策略来实现,不用再去花费金钱去购买网络监控软件或者防火墙等产品。 组策略是微软开发的非常实用的网络管理控制软件,在每台电脑上安装操作系统是就已经安装了,无需另外安装,只需简单的配置就可以了。方法如下: 点开始--》运行 输入 gpedit...'; public $link = ''; public $base = 'https://www.shan.info/item/457-2013-05-17-14-50-02.html'; public $language = 'en-gb'; public $direction = 'ltr'; public $_generator = 'Joomla! - Open Source Content Management'; public $_mdate = ''; public $_tab = '\t'; public $_lineEnd = '\n'; public $_charset = 'utf-8'; public $_mime = 'text/html'; public $_namespace = ''; public $_profile = ''; public $_scripts = [...]; public $_script = [...]; protected $scriptOptions = [...]; public $_styleSheets = [...]; public $_style = [...]; public $_metaTags = [...]; public $_engine = NULL; public $_type = 'html'; protected $mediaVersion = '15dbf078d61dbbf76811992dd0143dd9' }; protected $_name = 'item'; protected $_models = ['itemlist' => class K2ModelItemlist { ... }, 'item' => class K2ModelItem { ... }]; protected $_basePath = '/var/www/vhosts/shan.info/httpdocs/components/com_k2'; protected $_defaultModel = 'item'; protected $_layout = 'item'; protected $_layoutExt = 'php'; protected $_layoutTemplate = '_'; protected $_path = ['template' => [...], 'helper' => [...]]; protected $_template = '/var/www/vhosts/shan.info/httpdocs/templates/gk_publisher/html/com_k2/templates/default/item.php'; protected $_output = NULL; protected $_escape = 'htmlspecialchars'; protected $_charset = 'UTF-8'; protected $_errors = []; public $baseurl = ''; public $addLink = NULL; public $inlineCommentsModeration = FALSE; public $item = class stdClass { public $id = '457'; public $title = '巧用组策略限制访问网站'; public $alias = '2013-05-17-14-50-02'; public $catid = '39'; public $published = '1'; public $introtext = '<p style="margin: 0px 0px 5px; padding: 0px; border: 0px; list-style: none; word-wrap: normal; word-break: normal; line-height: 21px; color: #494949; font-family: simsun; font-size: 14px; background-color: #f6f6f6;">大家如果想禁止公司的员工或者家长禁止孩子访问某些网站,可以用组策略来实现,不用再去花费金钱去购买网络监控软件或者防火墙等产品。</p>\r\n<p style="margin: 0px 0px 5px; padding: 0px; border: 0px; list-style: none; word-wrap: normal; word'; public $fulltext = ''; public $video = NULL; public $gallery = NULL; public $extra_fields = NULL; public $extra_fields_search = ''; public $created = '2013-05-17 14:49:29'; public $created_by = '63'; public $created_by_alias = ''; public $checked_out = '63'; public $checked_out_time = '2013-05-17 14:50:46'; public $modified = '0000-00-00 00:00:00'; public $modified_by = '0'; public $publish_up = '2013-05-17 14:49:29'; public $publish_down = '0000-00-00 00:00:00'; public $trash = '0'; public $access = '1'; public $ordering = '22'; public $featured = '0'; public $featured_ordering = '0'; public $image_caption = ''; public $image_credits = ''; public $video_caption = ''; public $video_credits = ''; public $hits = '1187'; public $params = class Joomla\Registry\Registry { ... }; public $metadesc = ''; public $metadata = 'robots=\nauthor='; public $metakey = ''; public $plugins = ''; public $language = '*'; public $category = class TableK2Category { ... }; public $link = '/item/457-2013-05-17-14-50-02.html'; public $printLink = '/item/457-2013-05-17-14-50-02.html?tmpl=component&amp;print=1'; public $tags = [...]; public $imageXSmall = ''; public $imageSmall = ''; public $imageMedium = ''; public $imageLarge = ''; public $imageXLarge = ''; public $attachments = [...]; public $rawTitle = '巧用组策略限制访问网站'; public $author = class Joomla\CMS\User\User { ... }; public $videoType = 'allvideos'; public $text = '<p style="margin: 0px 0px 5px; padding: 0px; border: 0px; list-style: none; word-wrap: normal; word-break: normal; line-height: 21px; color: #494949; font-family: simsun; font-size: 14px; background-color: #f6f6f6;">大家如果想禁止公司的员工或者家长禁止孩子访问某些网站,可以用组策略来实现,不用再去花费金钱去购买网络监控软件或者防火墙等产品。</p>\r\n<p style="margin: 0px 0px 5px; padding: 0px; border: 0px; list-style: none; word-wrap: normal; word'; public $event = class stdClass { ... }; public $jcfields = [...]; public $image = ''; public $imageWidth = '600'; public $comments = [...]; public $numOfComments = 0; public $nextLink = '/item/499-symantec-endpoint-设置.html'; public $nextTitle = 'Symantec Endpoint 设置'; public $nextImageXSmall = ''; public $nextImageSmall = ''; public $nextImageMedium = ''; public $nextImageLarge = ''; public $nextImageXLarge = ''; public $previousLink = '/item/456-2013-05-17-14-49-12.html'; public $previousTitle = '在组策略禁止某应用程序运行/指定某程序运行'; public $previousImageXSmall = ''; public $previousImageSmall = ''; public $previousImageMedium = ''; public $previousImageLarge = ''; public $previousImageXLarge = ''; public $absoluteURL = 'https://www.shan.info/item/457-2013-05-17-14-50-02.html'; public $langTagForFB = 'en_GB'; public $langTagForTW = 'en-gb'; public $langTagForLI = 'en_GB'; public $sharinglink = 'https://www.shan.info/item/457-2013-05-17-14-50-02.html'; public $socialLink = 'https%3A%2F%2Fwww.shan.info%2Fitem%2F457-2013-05-17-14-50-02.html'; public $twitterURL = 'https://twitter.com/intent/tweet?text=%E5%B7%A7%E7%94%A8%E7%BB%84%E7%AD%96%E7%95%A5%E9%99%90%E5%88%B6%E8%AE%BF%E9%97%AE%E7%BD%91%E7%AB%99&amp;url=https%3A%2F%2Fwww.shan.info%2Fitem%2F457-2013-05-17-14-50-02.html'; public $langTagForGP = ''; public $emailLink = '/component/mailto/?tmpl=component&amp;template=gk_publisher&amp;link=658fda206e0db1a69add9809064b36ee3301f397' }; public $user = class Joomla\CMS\User\User { protected $isRoot = FALSE; public $id = 0; public $name = NULL; public $username = NULL; public $email = NULL; public $password = NULL; public $password_clear = ''; public $block = NULL; public $sendEmail = 0; public $registerDate = NULL; public $lastvisitDate = NULL; public $activation = NULL; public $params = NULL; public $groups = [...]; public $guest = 1; public $lastResetTime = NULL; public $resetCount = NULL; public $requireReset = NULL; protected $_params = class Joomla\Registry\Registry { ... }; protected $_authGroups = NULL; protected $_authLevels = [...]; protected $_authActions = NULL; protected $_errorMsg = NULL; protected $userHelper = class Joomla\CMS\User\UserWrapper { ... }; protected $_errors = [...]; public $aid = 0; public $gid = 1 }; public $params = class Joomla\Registry\Registry { protected $data = class stdClass { ... }; protected $initialized = TRUE; public $separator = '.' }; public $pagination = class Joomla\CMS\Pagination\Pagination { public $limitstart = 0; public $limit = 10; public $total = 0; public $prefix = ''; public $pagesStart = 1; public $pagesStop = 0; public $pagesCurrent = 1; public $pagesTotal = 0; public $hideEmptyLimitstart = FALSE; protected $viewall = FALSE; protected $additionalUrlParams = [...]; protected $app = class Joomla\CMS\Application\SiteApplication { ... }; protected $data = NULL } }, $method = 'display', $id = ???, $wrkarounds = ??? ).../BaseController.php:663
130.13573073552K2ViewItem->display( $tpl = ??? ).../ViewController.php:102
140.17456138240K2ViewItem->display( $tpl = NULL ).../view.html.php:742
150.17456138240K2ViewItem->loadTemplate( $tpl = NULL ).../HtmlView.php:230
160.17556341592include( '/var/www/vhosts/shan.info/httpdocs/templates/gk_publisher/html/com_k2/templates/default/item.php ).../HtmlView.php:701

( ! ) Notice: Only variables should be assigned by reference in /var/www/vhosts/shan.info/httpdocs/templates/gk_publisher/html/com_k2/templates/default/item.php on line 478
Call Stack
#TimeMemoryFunctionLocation
10.0003397720{main}( ).../index.php:0
20.03541348080Joomla\CMS\Application\SiteApplication->execute( ).../index.php:49
30.03541348080Joomla\CMS\Application\SiteApplication->doExecute( ).../CMSApplication.php:196
40.12732791320Joomla\CMS\Application\SiteApplication->dispatch( $component = ??? ).../SiteApplication.php:233
50.12772815720Joomla\CMS\Component\ComponentHelper::renderComponent( $option = 'com_k2', $params = ??? ).../SiteApplication.php:194
60.12822871072Joomla\CMS\Component\ComponentHelper::executeComponent( $path = '/var/www/vhosts/shan.info/httpdocs/components/com_k2/k2.php' ).../ComponentHelper.php:377
70.12822888128require_once( '/var/www/vhosts/shan.info/httpdocs/components/com_k2/k2.php ).../ComponentHelper.php:402
80.13193022800K2ControllerItem->execute( $task = '' ).../k2.php:64
90.13193022800K2ControllerItem->display( $cachable = ???, $urlparams = ??? ).../BaseController.php:710
100.13453046048K2ControllerItem->display( $cachable = TRUE, $urlparams = ['id' => 'INT', 'print' => 'INT', 'lang' => 'CMD', 'Itemid' => 'INT', 'm' => 'INT', 'amp' => 'INT', 'tmpl' => 'CMD', 'template' => 'CMD'] ).../item.php:78
110.13453046048K2ControllerItem->display( $cachable = TRUE, $urlparams = ['id' => 'INT', 'print' => 'INT', 'lang' => 'CMD', 'Itemid' => 'INT', 'm' => 'INT', 'amp' => 'INT', 'tmpl' => 'CMD', 'template' => 'CMD'] ).../controller.php:19
120.13523053184Joomla\CMS\Cache\Controller\ViewController->get( $view = class K2ViewItem { public $document = class Joomla\CMS\Document\HtmlDocument { public $_links = [...]; public $_custom = [...]; public $template = NULL; public $baseurl = NULL; public $params = NULL; public $_file = NULL; protected $_template = ''; protected $_template_tags = [...]; protected $_caching = NULL; private $_html5 = NULL; public $title = '巧用组策略限制访问网站'; public $description = '大家如果想禁止公司的员工或者家长禁止孩子访问某些网站,可以用组策略来实现,不用再去花费金钱去购买网络监控软件或者防火墙等产品。 组策略是微软开发的非常实用的网络管理控制软件,在每台电脑上安装操作系统是就已经安装了,无需另外安装,只需简单的配置就可以了。方法如下: 点开始--》运行 输入 gpedit...'; public $link = ''; public $base = 'https://www.shan.info/item/457-2013-05-17-14-50-02.html'; public $language = 'en-gb'; public $direction = 'ltr'; public $_generator = 'Joomla! - Open Source Content Management'; public $_mdate = ''; public $_tab = '\t'; public $_lineEnd = '\n'; public $_charset = 'utf-8'; public $_mime = 'text/html'; public $_namespace = ''; public $_profile = ''; public $_scripts = [...]; public $_script = [...]; protected $scriptOptions = [...]; public $_styleSheets = [...]; public $_style = [...]; public $_metaTags = [...]; public $_engine = NULL; public $_type = 'html'; protected $mediaVersion = '15dbf078d61dbbf76811992dd0143dd9' }; protected $_name = 'item'; protected $_models = ['itemlist' => class K2ModelItemlist { ... }, 'item' => class K2ModelItem { ... }]; protected $_basePath = '/var/www/vhosts/shan.info/httpdocs/components/com_k2'; protected $_defaultModel = 'item'; protected $_layout = 'item'; protected $_layoutExt = 'php'; protected $_layoutTemplate = '_'; protected $_path = ['template' => [...], 'helper' => [...]]; protected $_template = '/var/www/vhosts/shan.info/httpdocs/templates/gk_publisher/html/com_k2/templates/default/item.php'; protected $_output = NULL; protected $_escape = 'htmlspecialchars'; protected $_charset = 'UTF-8'; protected $_errors = []; public $baseurl = ''; public $addLink = NULL; public $inlineCommentsModeration = FALSE; public $item = class stdClass { public $id = '457'; public $title = '巧用组策略限制访问网站'; public $alias = '2013-05-17-14-50-02'; public $catid = '39'; public $published = '1'; public $introtext = '<p style="margin: 0px 0px 5px; padding: 0px; border: 0px; list-style: none; word-wrap: normal; word-break: normal; line-height: 21px; color: #494949; font-family: simsun; font-size: 14px; background-color: #f6f6f6;">大家如果想禁止公司的员工或者家长禁止孩子访问某些网站,可以用组策略来实现,不用再去花费金钱去购买网络监控软件或者防火墙等产品。</p>\r\n<p style="margin: 0px 0px 5px; padding: 0px; border: 0px; list-style: none; word-wrap: normal; word'; public $fulltext = ''; public $video = NULL; public $gallery = NULL; public $extra_fields = NULL; public $extra_fields_search = ''; public $created = '2013-05-17 14:49:29'; public $created_by = '63'; public $created_by_alias = ''; public $checked_out = '63'; public $checked_out_time = '2013-05-17 14:50:46'; public $modified = '0000-00-00 00:00:00'; public $modified_by = '0'; public $publish_up = '2013-05-17 14:49:29'; public $publish_down = '0000-00-00 00:00:00'; public $trash = '0'; public $access = '1'; public $ordering = '22'; public $featured = '0'; public $featured_ordering = '0'; public $image_caption = ''; public $image_credits = ''; public $video_caption = ''; public $video_credits = ''; public $hits = '1187'; public $params = class Joomla\Registry\Registry { ... }; public $metadesc = ''; public $metadata = 'robots=\nauthor='; public $metakey = ''; public $plugins = ''; public $language = '*'; public $category = class TableK2Category { ... }; public $link = '/item/457-2013-05-17-14-50-02.html'; public $printLink = '/item/457-2013-05-17-14-50-02.html?tmpl=component&amp;print=1'; public $tags = [...]; public $imageXSmall = ''; public $imageSmall = ''; public $imageMedium = ''; public $imageLarge = ''; public $imageXLarge = ''; public $attachments = [...]; public $rawTitle = '巧用组策略限制访问网站'; public $author = class Joomla\CMS\User\User { ... }; public $videoType = 'allvideos'; public $text = '<p style="margin: 0px 0px 5px; padding: 0px; border: 0px; list-style: none; word-wrap: normal; word-break: normal; line-height: 21px; color: #494949; font-family: simsun; font-size: 14px; background-color: #f6f6f6;">大家如果想禁止公司的员工或者家长禁止孩子访问某些网站,可以用组策略来实现,不用再去花费金钱去购买网络监控软件或者防火墙等产品。</p>\r\n<p style="margin: 0px 0px 5px; padding: 0px; border: 0px; list-style: none; word-wrap: normal; word'; public $event = class stdClass { ... }; public $jcfields = [...]; public $image = ''; public $imageWidth = '600'; public $comments = [...]; public $numOfComments = 0; public $nextLink = '/item/499-symantec-endpoint-设置.html'; public $nextTitle = 'Symantec Endpoint 设置'; public $nextImageXSmall = ''; public $nextImageSmall = ''; public $nextImageMedium = ''; public $nextImageLarge = ''; public $nextImageXLarge = ''; public $previousLink = '/item/456-2013-05-17-14-49-12.html'; public $previousTitle = '在组策略禁止某应用程序运行/指定某程序运行'; public $previousImageXSmall = ''; public $previousImageSmall = ''; public $previousImageMedium = ''; public $previousImageLarge = ''; public $previousImageXLarge = ''; public $absoluteURL = 'https://www.shan.info/item/457-2013-05-17-14-50-02.html'; public $langTagForFB = 'en_GB'; public $langTagForTW = 'en-gb'; public $langTagForLI = 'en_GB'; public $sharinglink = 'https://www.shan.info/item/457-2013-05-17-14-50-02.html'; public $socialLink = 'https%3A%2F%2Fwww.shan.info%2Fitem%2F457-2013-05-17-14-50-02.html'; public $twitterURL = 'https://twitter.com/intent/tweet?text=%E5%B7%A7%E7%94%A8%E7%BB%84%E7%AD%96%E7%95%A5%E9%99%90%E5%88%B6%E8%AE%BF%E9%97%AE%E7%BD%91%E7%AB%99&amp;url=https%3A%2F%2Fwww.shan.info%2Fitem%2F457-2013-05-17-14-50-02.html'; public $langTagForGP = ''; public $emailLink = '/component/mailto/?tmpl=component&amp;template=gk_publisher&amp;link=658fda206e0db1a69add9809064b36ee3301f397' }; public $user = class Joomla\CMS\User\User { protected $isRoot = FALSE; public $id = 0; public $name = NULL; public $username = NULL; public $email = NULL; public $password = NULL; public $password_clear = ''; public $block = NULL; public $sendEmail = 0; public $registerDate = NULL; public $lastvisitDate = NULL; public $activation = NULL; public $params = NULL; public $groups = [...]; public $guest = 1; public $lastResetTime = NULL; public $resetCount = NULL; public $requireReset = NULL; protected $_params = class Joomla\Registry\Registry { ... }; protected $_authGroups = NULL; protected $_authLevels = [...]; protected $_authActions = NULL; protected $_errorMsg = NULL; protected $userHelper = class Joomla\CMS\User\UserWrapper { ... }; protected $_errors = [...]; public $aid = 0; public $gid = 1 }; public $params = class Joomla\Registry\Registry { protected $data = class stdClass { ... }; protected $initialized = TRUE; public $separator = '.' }; public $pagination = class Joomla\CMS\Pagination\Pagination { public $limitstart = 0; public $limit = 10; public $total = 0; public $prefix = ''; public $pagesStart = 1; public $pagesStop = 0; public $pagesCurrent = 1; public $pagesTotal = 0; public $hideEmptyLimitstart = FALSE; protected $viewall = FALSE; protected $additionalUrlParams = [...]; protected $app = class Joomla\CMS\Application\SiteApplication { ... }; protected $data = NULL } }, $method = 'display', $id = ???, $wrkarounds = ??? ).../BaseController.php:663
130.13573073552K2ViewItem->display( $tpl = ??? ).../ViewController.php:102
140.17456138240K2ViewItem->display( $tpl = NULL ).../view.html.php:742
150.17456138240K2ViewItem->loadTemplate( $tpl = NULL ).../HtmlView.php:230
160.17556341592include( '/var/www/vhosts/shan.info/httpdocs/templates/gk_publisher/html/com_k2/templates/default/item.php ).../HtmlView.php:701
back to top