Magento获取特价产品 special price products

建立文件app/code/core/Mage/Catalog/Block/Product/Special.php

class Mage_Catalog_Block_Product_Special extends Mage_Catalog_Block_Product_Abstract
{
protected $_productsCount = null;

const DEFAULT_PRODUCTS_COUNT = 15;//默认显示数量

protected function _beforeToHtml()
{
$todayDate = Mage::app()->getLocale()->date()->toString(Varien_Date::DATETIME_INTERNAL_FORMAT);

$collection = Mage::getResourceModel('catalog/product_collection');
Mage::getSingleton('catalog/product_status')->addVisibleFilterToCollection($collection);
Mage::getSingleton('catalog/product_visibility')->addVisibleInCatalogFilterToCollection($collection);

$collection = $this->_addProductAttributesAndPrices($collection)
->addStoreFilter()
->addAttributeToFilter('special_from_date', array('date' => true, 'to' => $todayDate))
->addAttributeToFilter('special_to_date', array('or'=> array(
0 => array('date' => true, 'from' => $todayDate),
1 => array('is' => new Zend_Db_Expr('null')))
), 'left')
->addAttributeToSort('special_from_date', 'desc')
->setPageSize($this->getProductsCount())
->setCurPage(1);
$this->setProductCollection($collection);

return parent::_beforeToHtml();
}

public function setProductsCount($count)
{
$this->_productsCount = $count;
return $this;
}

public function getProductsCount()
{
if (null === $this->_productsCount) {
$this->_productsCount = self::DEFAULT_PRODUCTS_COUNT;
}
return $this->_productsCount;
}
}

创建/app/design/frontend/package/theme/template/catalog/product/special.phtml
这个文件复制这个目录下的new.phtml文件里的内容,改下名字为special.phtml

后台CMS->Page->Home page->Content中添加

{{block type="catalog/product_special" template="catalog/product/special.phtml"}}

转自互联网:

Magento后台控制面板介绍

安装完Magento之后,你会可以看到Magento的前台,如果你想进入后台,可以通过域名后加admin的方式访问后台,例如:http://www.example.com/admin。在登陆页面中,你输入安装时设置的用户名和密码登陆后台。

下面只介绍一下后台管理面板的一些关键特性。

创建多网站和商店(Creating Multiple Websites and Stores)

如果你对创建多网站,多商店,多上商店界面的话,你可以通过导航栏中的System->Manage Stores进行相关设置。

网站(Website)

创建一个新网站,只要点击Create Website按钮(右上角)。

每个网站都有一个唯一的Code。这个Code可以是一个文本名字,但是不能有空格或特殊字符。

如果你的新网站想命名为New Website,那最好就用“new”或者“newwebsite”代替了。

你可以在Website的列表可以进行排序,那样就可以很直观的看到Website的关系了。

如果你没有指定在访问index.php时要显示的Website,那么用户在浏览前台的时候就会自动转到默认网站(Default Website)上,这个选项可以在Set as default这个checkbox设置。

商店(Store)

创建一个新的商店,点击右上角的Create Store按钮。

然后选择属于哪个网站。

接着选择Store的根分类(Root Category)。在你的分类设置中,你可以创建多个根分类,每个根分类对应不同的商店。 分配到这些根分类的子分类和产品只会在根分类关联Store中出现。如果你不想为不同的Store创建不同根分类,你可以为所有Store选用一个相同的根分类。

商店界面(Store View)

正如Magento的要素和专业术语介绍的一样,Store Views是用来表现多语言站点的最好方式。

点击右上角的Create Store View创建新的Store View。

选择要关联的Store。Store View中的Code和列表跟前面Website说的原理是一样的。

要先激活(Enabled)才能让Store View在网店前台显示。你也可以通过Disabled达到取消前台显示,而不用把它删除。

你可以为每个Store View指定一个唯一显示地方(Locals)。选择导航栏中System->Configuration,然后选择左边的General。接着在右边的Current Configuration Scope选择你希望使用的Store View。取消Use website那个checkbox,然后选择你喜欢的Local。之后这个地方就应用这个Store View了。

权限(Permissions)

Magento的权限系统既灵活又直观。你可以自由定义一些拥有不同权限的管理者角色,他们可以访问后台的某些功能。然后在你创建新用户的时候可以 为他分配角色(Role)。在用户页面(Users Page)和角色页面(Roles Page)你都可以进行分配角色的操作。

新建角色(Creating Roles)

创建一个新角色,可以通过导航System -> Permissions online casinos -> Roles,然后点Add New Role

  • 角色信息(Role Info):输入角色名(Role Name)。
  • 角色资源(Role Resources):选择可以用的资源(Resources),或者角色可以使用的管理员的功能。如果你选择了所有的Resource,那么这个角色就拥有访问这些Resource的权限。如果你选择自定义(Custom),一个Resource的树状列表就会显示出来,你就可以选择分配给这个角色的一些Resource的权限了。最后点击Save Role保存。
  • 角色用户(Role Users):通过上面的方法保存了角色之后,一个Tab就会出现。这个Tab是显示所有拥有这个角色的用户。如果先查看所有的用户,可以点击Reset Filter。然后选择你要分配这个角色的用户,之后再保存角色(Save Role)。

分配用户(Assigning Users)

要新建一个用户,通过导航栏System -> Permissions -> Users,然后点击Add New User

  • 用户信息(User Info):输入用户的所有信息。用户名和密码是让这个用户登陆后台的。要用户的账号有效的话,要先激活(Active)。你也同样可以设置Inactive取消他登陆后台的权限,而不用删除这个用户账号。
  • 用户角色(User Role):选择用户(User)关联的角色。这个页面会列出所有的Roles,然后你只可以为用户指派一个Role。最后点击Save User保存。

缓存管理(Cache Management)

缓存管理可以在通过 System -> Cache management访问。这可以大大提高magento的性能。但是如果你在开发或修改magento,那最好先不要激活缓存。缓存功能也比较强大,可以对整个网店缓存,可以只针对某个模块缓

Magento的系统需求

下面是Magento的运行环境最低需求配置:

  • Linux, Windows, 或其他 UNIX兼容操作系统
  • Apache Web Server (1.x or 2.x)
  • PHP 5.2.0 以上, 并且包含下列扩展(Extensions/Addons):
  • PDO/MySQL
  • MySQLi
  • mcrypt
  • mhash
  • simplexml
  • DOM
  • curl
  • gd
  • soap
  • MySQL 4.1.20 或更新版本
  • Sendmail兼容的 Mail Transfer Agent (MTA)
  • 如果没有MTA,Magento 将直接连接一个 SMTP server

我们还建议使用APC作为一个字节码缓存,将会使Magento获得性能方面的改进。你可以在PECL中找到它:http://pecl.php.net/package/APC。其他字节码缓存系统暂时不支持

如果您不确定您的服务器托管公司是否支持这些功能,请与联系他们。您还可以通过下面的链接查看这些规格:http://www.magentocommerce.com/system-requirements。如果你的服务器支持上面提到的一些条件,那么你就可以下载并安装Magento了。

 

Magento下载

Magento是免费下载的。可以到http://www.magentocommerce.com/download下载。Magento官方网站提供 两种Magento下载方式,一种是Installer的方式,就是只包含必要的文件的Installer安装器再通过它下载Magento文件并进行完 全安装。另一种方式则是直接下载完整的Magento安装包进行安装。

两种方式都提供了不同的压缩格式,有.zip,.tar.gz等等,你可以根据自己的需要进行选择。

提醒:如果你是一个开发者,并且熟悉SVN的话,你可以通过SVN来checkout最新的版本。要了解更多请看:http://www.magentocommerce.com/svn

当你成功下载完Magento之后,接下来就是在你的服务器上面安装Magento了。

分享两个magneto插件–最近浏览的产品|产品页查看前一个产品以及下一个产品

https://www.magentocommerce.com/magento-connect/atwix/extension/5690/atwix_recentlyviewed

这个插件显示最新浏览过的产品,特点是显示在了页面下方而且可以点击展开和隐藏:如图个人感觉还不错

magento最近浏览产品
magento最近浏览产品

 

 

 

 

 

 

 

 

 

 

http://www.magentocommerce.com/magento-connect/vivek291186/extension/5757/nextpreviouspaging

这是在产品的详细页面实现前进  后退  目录功能的插件:效果图

前进 后退
前进 后退

限制IP访问网站

目前Magento网站建设过程中基于多方面的原因,我们不想让国内的IP去访问我们的站点(尤其是外贸站点),

网上现在也有很多专门为限制IP提供的服务,但是个人感觉在自己网站添加别人的JS代码来限制IP,是否有些

不安全呢,所以自己实现一个国内IP限制的功能:两种办法给大家分享一下,还希望大家予以指点。

1. 第一种方法:在网站index.php等首页站添加判断代码限制中国访问网站

原理就是判断当前浏览器的语言:代码如下
preg_match(‘/^([a-z\-]+)/i’, $_SERVER[‘HTTP_ACCEPT_LANGUAGE’], $matches);
$language= $matches[1];

switch ($language) {
case ‘zh-cn’ :
echo “网站正在建设中!”;
exit();
case ‘zh-CN’ :
echo “网站正在建设中!”;
exit();
}

这里只对大陆的zh-cn进行了屏蔽访问,但是这种方法对于稍微懂得网络的人来说那是自欺欺人了,只要改

掉浏览器的语言又可以重新登陆了……

2.第二种方法:apache环境下在网站的根目录.htaccess中添加如下代码:实现限制国内IP访问外贸网站

<Limit GET HEAD POST>
order allow,deny
deny from 58.14.0.0/15
deny from 58.16.0.0/13
deny from 58.24.0.0/15
deny from 58.30.0.0/15
deny from 58.32.0.0/11
deny from 58.66.0.0/15
deny from 58.68.128.0/17
deny from 58.82.0.0/15
deny from 58.87.64.0/18
deny from 58.99.128.0/17
deny from 58.100.0.0/15
deny from 58.116.0.0/14
deny from 58.128.0.0/13
deny from 58.144.0.0/16
deny from 58.154.0.0/15
deny from 58.192.0.0/11
deny from 58.240.0.0/12
deny from 59.32.0.0/11
deny from 59.64.0.0/12
deny from 59.80.0.0/14
deny from 59.107.0.0/16
deny from 59.108.0.0/14
deny from 59.151.0.0/17
deny from 59.155.0.0/16
deny from 59.172.0.0/14
deny from 59.191.0.0/17
deny from 59.191.240.0/20
deny from 59.192.0.0/10
deny from 60.0.0.0/11
deny from 60.55.0.0/16
deny from 60.63.0.0/16
deny from 60.160.0.0/11
deny from 60.194.0.0/15
deny from 60.200.0.0/13
deny from 60.208.0.0/12
deny from 60.232.0.0/15
deny from 60.235.0.0/16
deny from 60.245.128.0/17
deny from 60.247.0.0/16
deny from 60.252.0.0/16
deny from 60.253.128.0/17
deny from 60.255.0.0/16
deny from 61.4.80.0/20
deny from 61.4.176.0/20
deny from 61.8.160.0/20
deny from 61.28.0.0/17
deny from 61.29.128.0/17
deny from 61.45.128.0/18
deny from 61.47.128.0/18
deny from 61.48.0.0/13
deny from 61.87.192.0/18
deny from 61.128.0.0/10
deny from 61.232.0.0/14
deny from 61.236.0.0/15
deny from 61.240.0.0/14
deny from 114.28.0.0/16
deny from 114.54.0.0/15
deny from 114.60.0.0/14
deny from 114.64.0.0/14
deny from 114.68.0.0/16
deny from 114.80.0.0/12
deny from 116.1.0.0/16
deny from 116.2.0.0/15
deny from 116.4.0.0/14
deny from 116.8.0.0/14
deny from 116.13.0.0/16
deny from 116.16.0.0/12
deny from 116.52.0.0/14
deny from 116.56.0.0/15
deny from 116.58.128.0/20
deny from 116.58.208.0/20
deny from 116.60.0.0/14
deny from 116.66.0.0/17
deny from 116.69.0.0/16
deny from 116.70.0.0/17
deny from 116.76.0.0/14
deny from 116.89.144.0/20
deny from 116.90.184.0/21
deny from 116.95.0.0/16
deny from 116.112.0.0/14
deny from 116.116.0.0/15
deny from 116.128.0.0/10
deny from 116.192.0.0/16
deny from 116.193.16.0/20
deny from 116.193.32.0/19
deny from 116.194.0.0/15
deny from 116.196.0.0/16
deny from 116.198.0.0/16
deny from 116.199.0.0/17
deny from 116.199.128.0/19
deny from 116.204.0.0/15
deny from 116.207.0.0/16
deny from 116.208.0.0/14
deny from 116.212.160.0/20
deny from 116.213.64.0/18
deny from 116.213.128.0/17
deny from 116.214.32.0/19
deny from 116.214.64.0/20
deny from 116.214.128.0/17
deny from 116.215.0.0/16
deny from 116.216.0.0/14
deny from 116.224.0.0/12
deny from 116.242.0.0/15
deny from 116.244.0.0/14
deny from 116.248.0.0/15
deny from 116.252.0.0/15
deny from 116.254.128.0/17
deny from 116.255.128.0/17
deny from 117.8.0.0/13
deny from 117.21.0.0/16
deny from 117.22.0.0/15
deny from 117.24.0.0/13
deny from 117.32.0.0/13
deny from 117.40.0.0/14
deny from 117.44.0.0/15
deny from 117.48.0.0/14
deny from 117.53.48.0/20
deny from 117.53.176.0/20
deny from 117.57.0.0/16
deny from 117.58.0.0/17
deny from 117.59.0.0/16
deny from 117.60.0.0/14
deny from 117.64.0.0/13
deny from 117.72.0.0/15
deny from 117.74.64.0/20
deny from 117.74.128.0/17
deny from 117.75.0.0/16
deny from 117.76.0.0/14
deny from 117.80.0.0/12
deny from 117.100.0.0/15
deny from 117.103.16.0/20
deny from 117.103.128.0/20
deny from 117.106.0.0/15
deny from 117.112.0.0/13
deny from 117.120.64.0/18
deny from 117.120.128.0/17
deny from 117.121.0.0/17
deny from 117.121.128.0/18
deny from 117.121.192.0/21
deny from 117.122.128.0/17
deny from 117.124.0.0/14
deny from 117.128.0.0/10
deny from 118.24.0.0/13
deny from 118.64.0.0/15
deny from 118.66.0.0/16
deny from 118.67.112.0/20
deny from 118.72.0.0/13
deny from 118.80.0.0/15
deny from 118.84.0.0/15
deny from 118.88.32.0/19
deny from 118.88.64.0/18
deny from 118.88.128.0/17
deny from 118.89.0.0/16
deny from 118.91.240.0/20
deny from 118.102.16.0/20
deny from 118.112.0.0/13
deny from 118.120.0.0/14
deny from 118.124.0.0/15
deny from 118.126.0.0/16
deny from 118.132.0.0/14
deny from 118.144.0.0/14
deny from 118.178.0.0/16
deny from 118.180.0.0/14
deny from 118.184.0.0/13
deny from 118.192.0.0/12
deny from 118.212.0.0/15
deny from 118.224.0.0/14
deny from 118.228.0.0/15
deny from 118.230.0.0/16
deny from 118.239.0.0/16
deny from 118.242.0.0/16
deny from 118.244.0.0/14
deny from 118.248.0.0/13
deny from 119.0.0.0/15
deny from 119.2.0.0/19
deny from 119.2.128.0/17
deny from 119.3.0.0/16
deny from 119.4.0.0/14
deny from 119.8.0.0/15
deny from 119.10.0.0/17
deny from 119.15.136.0/21
deny from 119.16.0.0/16
deny from 119.18.192.0/20
deny from 119.18.208.0/21
deny from 119.18.224.0/19
deny from 119.19.0.0/16
deny from 119.20.0.0/14
deny from 119.27.64.0/18
deny from 119.27.160.0/19
deny from 119.27.192.0/18
deny from 119.28.0.0/15
deny from 119.30.48.0/20
deny from 119.31.192.0/19
deny from 119.32.0.0/13
deny from 119.40.0.0/18
deny from 119.40.64.0/20
deny from 119.40.128.0/17
deny from 119.41.0.0/16
deny from 119.42.0.0/19
deny from 119.42.136.0/21
deny from 119.42.224.0/19
deny from 119.44.0.0/15
deny from 119.48.0.0/13
deny from 119.57.0.0/16
deny from 119.58.0.0/16
deny from 119.59.128.0/17
deny from 119.60.0.0/15
deny from 119.62.0.0/16
deny from 119.63.32.0/19
deny from 119.75.208.0/20
deny from 119.78.0.0/15
deny from 119.80.0.0/15
deny from 119.84.0.0/14
deny from 119.88.0.0/14
deny from 119.96.0.0/13
deny from 119.108.0.0/15
deny from 119.112.0.0/12
deny from 119.128.0.0/12
deny from 119.144.0.0/14
deny from 119.148.160.0/20
deny from 119.161.128.0/17
deny from 119.162.0.0/15
deny from 119.164.0.0/14
deny from 119.176.0.0/12
deny from 119.232.0.0/15
deny from 119.235.128.0/18
deny from 119.248.0.0/14
deny from 119.253.0.0/16
deny from 119.254.0.0/15
deny from 120.0.0.0/12
deny from 120.24.0.0/14
deny from 120.30.0.0/15
deny from 120.32.0.0/12
deny from 120.48.0.0/15
deny from 120.52.0.0/14
deny from 120.64.0.0/13
deny from 120.72.32.0/19
deny from 120.72.128.0/17
deny from 120.76.0.0/14
deny from 120.80.0.0/13
deny from 120.90.0.0/15
deny from 120.92.0.0/16
deny from 120.94.0.0/15
deny from 120.128.0.0/13
deny from 120.136.128.0/18
deny from 120.137.0.0/17
deny from 120.192.0.0/10
deny from 121.0.16.0/20
deny from 121.4.0.0/15
deny from 121.8.0.0/13
deny from 121.16.0.0/12
deny from 121.32.0.0/13
deny from 121.40.0.0/14
deny from 121.46.0.0/15
deny from 121.48.0.0/15
deny from 121.51.0.0/16
deny from 121.52.160.0/19
deny from 121.52.208.0/20
deny from 121.52.224.0/19
deny from 121.55.0.0/18
deny from 121.56.0.0/15
deny from 121.58.0.0/17
deny from 121.58.144.0/20
deny from 121.59.0.0/16
deny from 121.60.0.0/14
deny from 121.68.0.0/14
deny from 121.76.0.0/15
deny from 121.79.128.0/18
deny from 121.89.0.0/16
deny from 121.100.128.0/17
deny from 121.101.208.0/20
deny from 121.192.0.0/13
deny from 121.201.0.0/16
deny from 121.204.0.0/14
deny from 121.224.0.0/12
deny from 121.248.0.0/14
deny from 121.255.0.0/16
deny from 122.0.64.0/18
deny from 122.0.128.0/17
deny from 122.4.0.0/14
deny from 122.8.0.0/13
deny from 122.48.0.0/16
deny from 122.49.0.0/18
deny from 122.51.0.0/16
deny from 122.64.0.0/11
deny from 122.96.0.0/15
deny from 122.102.0.0/20
deny from 122.102.64.0/19
deny from 122.112.0.0/14
deny from 122.119.0.0/16
deny from 122.136.0.0/13
deny from 122.144.128.0/17
deny from 122.152.192.0/18
deny from 122.156.0.0/14
deny from 122.192.0.0/14
deny from 122.198.0.0/16
deny from 122.200.64.0/18
deny from 122.204.0.0/14
deny from 122.224.0.0/12
deny from 122.240.0.0/13
deny from 122.248.48.0/20
deny from 123.0.128.0/18
deny from 123.4.0.0/14
deny from 123.8.0.0/13
deny from 123.49.128.0/17
deny from 123.52.0.0/14
deny from 123.56.0.0/13
deny from 123.64.0.0/11
deny from 123.96.0.0/15
deny from 123.98.0.0/17
deny from 123.99.128.0/17
deny from 123.100.0.0/19
deny from 123.101.0.0/16
deny from 123.103.0.0/17
deny from 123.108.128.0/20
deny from 123.108.208.0/20
deny from 123.112.0.0/12
deny from 123.128.0.0/13
deny from 123.136.80.0/20
deny from 123.137.0.0/16
deny from 123.138.0.0/15
deny from 123.144.0.0/12
deny from 123.160.0.0/12
deny from 123.176.80.0/20
deny from 123.177.0.0/16
deny from 123.178.0.0/15
deny from 123.180.0.0/14
deny from 123.184.0.0/13
deny from 123.196.0.0/15
deny from 123.199.128.0/17
deny from 123.206.0.0/15
deny from 123.232.0.0/14
deny from 123.242.0.0/17
deny from 123.244.0.0/14
deny from 123.249.0.0/16
deny from 123.253.0.0/16
deny from 124.6.64.0/18
deny from 124.14.0.0/15
deny from 124.16.0.0/15
deny from 124.20.0.0/14
deny from 124.28.192.0/18
deny from 124.29.0.0/17
deny from 124.31.0.0/16
deny from 124.40.112.0/20
deny from 124.40.128.0/18
deny from 124.42.0.0/16
deny from 124.47.0.0/18
deny from 124.64.0.0/15
deny from 124.66.0.0/17
deny from 124.67.0.0/16
deny from 124.68.0.0/14
deny from 124.72.0.0/13
deny from 124.88.0.0/13
deny from 124.108.8.0/21
deny from 124.108.40.0/21
deny from 124.112.0.0/13
deny from 124.126.0.0/15
deny from 124.128.0.0/13
deny from 124.147.128.0/17
deny from 124.156.0.0/16
deny from 124.160.0.0/13
deny from 124.172.0.0/14
deny from 124.192.0.0/15
deny from 124.196.0.0/16
deny from 124.200.0.0/13
deny from 124.220.0.0/14
deny from 124.224.0.0/12
deny from 124.240.0.0/17
deny from 124.240.128.0/18
deny from 124.242.0.0/16
deny from 124.243.192.0/18
deny from 124.248.0.0/17
deny from 124.249.0.0/16
deny from 124.250.0.0/15
deny from 124.254.0.0/18
deny from 125.31.192.0/18
deny from 125.32.0.0/12
deny from 125.58.128.0/17
deny from 125.61.128.0/17
deny from 125.62.0.0/18
deny from 125.64.0.0/11
deny from 125.96.0.0/15
deny from 125.98.0.0/16
deny from 125.104.0.0/13
deny from 125.112.0.0/12
deny from 125.169.0.0/16
deny from 125.171.0.0/16
deny from 125.208.0.0/18
deny from 125.210.0.0/15
deny from 125.213.0.0/17
deny from 125.214.96.0/19
deny from 125.215.0.0/18
deny from 125.216.0.0/13
deny from 125.254.128.0/17
deny from 134.196.0.0/16
deny from 159.226.0.0/16
deny from 161.207.0.0/16
deny from 162.105.0.0/16
deny from 166.111.0.0/16
deny from 167.139.0.0/16
deny from 168.160.0.0/16
deny from 169.211.1.0/24
deny from 192.83.122.0/24
deny from 192.83.169.0/24
deny from 192.124.154.0/24
deny from 192.188.170.0/24
deny from 198.17.7.0/24
deny from 202.0.110.0/24
deny from 202.0.176.0/22
deny from 202.4.128.0/19
deny from 202.4.252.0/22
deny from 202.8.128.0/19
deny from 202.10.64.0/20
deny from 202.14.88.0/24
deny from 202.14.235.0/24
deny from 202.14.236.0/23
deny from 202.14.238.0/24
deny from 202.20.120.0/24
deny from 202.22.248.0/21
deny from 202.38.0.0/20
deny from 202.38.64.0/18
deny from 202.38.128.0/21
deny from 202.38.136.0/23
deny from 202.38.138.0/24
deny from 202.38.140.0/22
deny from 202.38.146.0/23
deny from 202.38.149.0/24
deny from 202.38.150.0/23
deny from 202.38.152.0/22
deny from 202.38.156.0/24
deny from 202.38.158.0/23
deny from 202.38.160.0/23
deny from 202.38.164.0/22
deny from 202.38.168.0/21
deny from 202.38.176.0/23
deny from 202.38.184.0/21
deny from 202.38.192.0/18
deny from 202.41.152.0/21
deny from 202.41.240.0/20
deny from 202.43.144.0/20
deny from 202.46.32.0/19
deny from 202.46.224.0/20
deny from 202.60.112.0/20
deny from 202.63.248.0/22
deny from 202.69.4.0/22
deny from 202.69.16.0/20
deny from 202.70.0.0/19
deny from 202.74.8.0/21
deny from 202.75.208.0/20
deny from 202.85.208.0/20
deny from 202.90.0.0/22
deny from 202.90.224.0/20
deny from 202.90.252.0/22
deny from 202.91.0.0/22
deny from 202.91.128.0/22
deny from 202.91.176.0/20
deny from 202.91.224.0/19
deny from 202.92.0.0/22
deny from 202.92.252.0/22
deny from 202.93.0.0/22
deny from 202.93.252.0/22
deny from 202.95.0.0/19
deny from 202.95.252.0/22
deny from 202.96.0.0/12
deny from 202.112.0.0/13
deny from 202.120.0.0/15
deny from 202.122.0.0/21
deny from 202.122.32.0/21
deny from 202.122.64.0/19
deny from 202.122.112.0/21
deny from 202.122.128.0/24
deny from 202.123.96.0/20
deny from 202.124.24.0/22
deny from 202.125.176.0/20
deny from 202.127.0.0/21
deny from 202.127.12.0/22
deny from 202.127.16.0/20
deny from 202.127.40.0/21
deny from 202.127.48.0/20
deny from 202.127.112.0/20
deny from 202.127.128.0/19
deny from 202.127.160.0/21
deny from 202.127.192.0/20
deny from 202.127.208.0/23
deny from 202.127.212.0/22
deny from 202.127.216.0/21
deny from 202.127.224.0/19
deny from 202.130.0.0/19
deny from 202.130.224.0/19
deny from 202.131.16.0/21
deny from 202.131.48.0/20
deny from 202.131.208.0/20
deny from 202.136.48.0/20
deny from 202.136.208.0/20
deny from 202.136.224.0/20
deny from 202.141.160.0/19
deny from 202.142.16.0/20
deny from 202.143.16.0/20
deny from 202.148.96.0/19
deny from 202.149.160.0/19
deny from 202.149.224.0/19
deny from 202.150.16.0/20
deny from 202.152.176.0/20
deny from 202.153.48.0/20
deny from 202.158.160.0/19
deny from 202.160.176.0/20
deny from 202.164.0.0/20
deny from 202.164.25.0/24
deny from 202.165.96.0/20
deny from 202.165.176.0/20
deny from 202.165.208.0/20
deny from 202.168.160.0/19
deny from 202.170.128.0/19
deny from 202.170.216.0/21
deny from 202.173.8.0/21
deny from 202.173.224.0/19
deny from 202.179.240.0/20
deny from 202.180.128.0/19
deny from 202.181.112.0/20
deny from 202.189.80.0/20
deny from 202.192.0.0/12
deny from 203.18.50.0/24
deny from 203.79.0.0/20
deny from 203.80.144.0/20
deny from 203.81.16.0/20
deny from 203.83.56.0/21
deny from 203.86.0.0/18
deny from 203.86.64.0/19
deny from 203.88.32.0/19
deny from 203.88.192.0/19
deny from 203.89.0.0/22
deny from 203.90.0.0/22
deny from 203.90.128.0/18
deny from 203.90.192.0/19
deny from 203.91.32.0/19
deny from 203.91.96.0/20
deny from 203.91.120.0/21
deny from 203.92.0.0/22
deny from 203.92.160.0/19
deny from 203.93.0.0/16
deny from 203.94.0.0/19
deny from 203.95.0.0/21
deny from 203.95.96.0/19
deny from 203.99.16.0/20
deny from 203.99.80.0/20
deny from 203.100.32.0/20
deny from 203.100.80.0/20
deny from 203.100.96.0/19
deny from 203.100.192.0/20
deny from 203.110.160.0/19
deny from 203.118.192.0/19
deny from 203.119.24.0/21
deny from 203.119.32.0/22
deny from 203.128.32.0/19
deny from 203.128.96.0/19
deny from 203.130.32.0/19
deny from 203.132.32.0/19
deny from 203.134.240.0/21
deny from 203.135.96.0/19
deny from 203.135.160.0/20
deny from 203.142.219.0/24
deny from 203.148.0.0/18
deny from 203.152.64.0/19
deny from 203.156.192.0/18
deny from 203.158.16.0/21
deny from 203.161.192.0/19
deny from 203.166.160.0/19
deny from 203.171.224.0/20
deny from 203.174.7.0/24
deny from 203.174.96.0/19
deny from 203.175.128.0/19
deny from 203.175.192.0/18
deny from 203.176.168.0/21
deny from 203.184.80.0/20
deny from 203.187.160.0/19
deny from 203.190.96.0/20
deny from 203.191.16.0/20
deny from 203.191.64.0/18
deny from 203.191.144.0/20
deny from 203.192.0.0/19
deny from 203.196.0.0/21
deny from 203.207.64.0/18
deny from 203.207.128.0/17
deny from 203.208.0.0/20
deny from 203.208.16.0/22
deny from 203.208.32.0/19
deny from 203.209.224.0/19
deny from 203.212.0.0/20
deny from 203.212.80.0/20
deny from 203.222.192.0/20
deny from 203.223.0.0/20
deny from 210.2.0.0/19
deny from 210.5.0.0/19
deny from 210.5.144.0/20
deny from 210.12.0.0/15
deny from 210.14.64.0/19
deny from 210.14.112.0/20
deny from 210.14.128.0/17
deny from 210.15.0.0/17
deny from 210.15.128.0/18
deny from 210.16.128.0/18
deny from 210.21.0.0/16
deny from 210.22.0.0/16
deny from 210.23.32.0/19
deny from 210.25.0.0/16
deny from 210.26.0.0/15
deny from 210.28.0.0/14
deny from 210.32.0.0/12
deny from 210.51.0.0/16
deny from 210.52.0.0/15
deny from 210.56.192.0/19
deny from 210.72.0.0/14
deny from 210.76.0.0/15
deny from 210.78.0.0/16
deny from 210.79.64.0/18
deny from 210.79.224.0/19
deny from 210.82.0.0/15
deny from 210.87.128.0/18
deny from 210.185.192.0/18
deny from 210.192.96.0/19
deny from 211.64.0.0/13
deny from 211.80.0.0/12
deny from 211.96.0.0/13
deny from 211.136.0.0/13
deny from 211.144.0.0/12
deny from 211.160.0.0/13
deny from 218.0.0.0/11
deny from 218.56.0.0/13
deny from 218.64.0.0/11
deny from 218.96.0.0/14
deny from 218.104.0.0/14
deny from 218.108.0.0/15
deny from 218.185.192.0/19
deny from 218.192.0.0/12
deny from 218.240.0.0/13
deny from 218.249.0.0/16
deny from 219.72.0.0/16
deny from 219.82.0.0/16
deny from 219.128.0.0/11
deny from 219.216.0.0/13
deny from 219.224.0.0/12
deny from 219.242.0.0/15
deny from 219.244.0.0/14
deny from 220.101.192.0/18
deny from 220.112.0.0/14
deny from 220.152.128.0/17
deny from 220.154.0.0/15
deny from 220.160.0.0/11
deny from 220.192.0.0/12
deny from 220.231.0.0/18
deny from 220.231.128.0/17
deny from 220.232.64.0/18
deny from 220.234.0.0/16
deny from 220.242.0.0/15
deny from 220.248.0.0/14
deny from 220.252.0.0/16
deny from 221.0.0.0/13
deny from 221.8.0.0/14
deny from 221.12.0.0/17
deny from 221.12.128.0/18
deny from 221.13.0.0/16
deny from 221.14.0.0/15
deny from 221.122.0.0/15
deny from 221.129.0.0/16
deny from 221.130.0.0/15
deny from 221.133.224.0/19
deny from 221.136.0.0/15
deny from 221.172.0.0/14
deny from 221.176.0.0/13
deny from 221.192.0.0/14
deny from 221.196.0.0/15
deny from 221.198.0.0/16
deny from 221.199.0.0/17
deny from 221.199.128.0/18
deny from 221.199.192.0/20
deny from 221.199.224.0/19
deny from 221.200.0.0/13
deny from 221.208.0.0/12
deny from 221.224.0.0/12
deny from 222.16.0.0/12
deny from 222.32.0.0/11
deny from 222.64.0.0/11
deny from 222.125.0.0/16
deny from 222.126.128.0/17
deny from 222.128.0.0/12
deny from 222.160.0.0/14
deny from 222.168.0.0/13
deny from 222.176.0.0/12
deny from 222.192.0.0/11
deny from 222.240.0.0/13
deny from 222.248.0.0/15

allow from all
</LIMIT>

如果国内IP还有继续访问的话,那就只能通过代理服务或者其他的修改IP来访问了