欢迎各位兄弟 发布技术文章

这里的技术是共享的

You are here

一个 ok 的 htaccess 文件 有大用

AddDefaultCharset UTF-8

ErrorDocument 404 /error.html


<IfModule mod_rewrite.c>


RewriteEngine On




RewriteCond %{HTTP_USER_AGENT} "android|blackberry|googlebot-mobile|iemobile|iphone|ipod|opera mobile|palmos|webos" [NC]

RewriteCond %{HTTP_HOST} aaa.cn$ [NC]

RewriteCond %{REQUEST_URI} !^.*(\.css|\.js|\.gif|\.png|\.jpg|\.jpeg)$ [NC] 

RewriteRule ^(.*)$ http://wap.aaa.cn/ [NC,R=301]



RewriteCond %{HTTP_USER_AGENT} "android|blackberry|googlebot-mobile|iemobile|iphone|ipod|opera mobile|palmos|webos" [NC]

RewriteCond %{HTTP_HOST} bbb.com$ [NC]

RewriteCond %{REQUEST_URI} !^.*(\.css|\.js|\.gif|\.png|\.jpg|\.jpeg)$ [NC] 

RewriteRule ^(.*)$ http://wap.bbb.com/ [NC,R=301]





#stop po huai

#RewriteCond %{HTTP_REFERER} !^http://my.4000512126.com [NC]

#RewriteCond %{HTTP_REFERER} !^http://4000512126.com [NC]

#RewriteCond %{HTTP_REFERER} !^http://www.4000512126.com [NC]

#RewriteCond %{HTTP_REFERER}  !4000512126.com [NC]

#RewriteCond %{HTTP_REFERER} !^http://szfzxx.com [NC]

#RewriteCond %{HTTP_REFERER} !^http://www.szfzxx.com [NC]

#RewriteCond %{HTTP_REFERER}  !szfzxx.com [NC]

#RewriteRule php/zaixianbaoming(.*)\.php$ /nolink.txt [R,NC]

#RewriteRule php/zaixianbaoming(.*)\.php$ /nolink.txt [R,NC]


#this is an quang jingzhi de php

RewriteCond % !^$  

RewriteRule uploads/(.*).(php)$ – [F]  

RewriteRule data/(.*).(php)$ – [F]  

RewriteRule dataa/(.*).(php)$ – [F]  

RewriteRule templets/(.*).(php)$ – [F]

RewriteRule plus/(?!feedback_ajax|count|list|view)[^>]*.(php)[^>]*$ – [F]

RewriteRule member/(.*).(php)$ – [F]

RewriteRule special/(.*).(php)$ – [F]

#RewriteRule include/(?!vdimgck).{7}.(php)$ – [F] 效果不理想

RewriteRule include/(?!vdimgck|dialog/select_images)[^>]*.(php)$ – [F]

RewriteRule data/(.*).(php)$ – [F]

RewriteRule a/(.*).(php)$ – [F]

RewriteRule images/(.*).(php)$ – [F]

</IfModule>


Order deny,allow


deny from 59.52.12.246









普通分类: