/search/spider.html) 200 0 64 2012-02-23 01:37:23 w3sv1_1308376 192.168.206.2 get http://www.51dianzhu.com/archiver/index.php action = TID value = 90013 80-123.125.71.56 Mozilla/5.0 + (compatible; + baidusp/ 2.0; + http://www.baidu.com/search/spider.html) 200 0 64
I disabled gzip for tracking and observation. The logs found on the next day are as follows: 2012-02-24 01:46:05 w3sv00001308376 192.168.206.2 get http://www.51dianzhu.com//
: // 127.0.0.1;}
Second, the rewrite rules of nginx are almost identical to those of Apache. The difference is the final flag. For example:
Rewrite ^/feed/$ last http://feed.shunz.net;
Flag labels include:
* Last is equivalent to the [l] Mark in Apache, indicating that rewrite is completed and subsequent rules are not matched.* Break is similar to last.* Redirect returns 302 temporary redirection* Permanent returns 301 permanent redirection
WordPress redirection rules:
If (! -E $ requ
1. It should be noted that all the rewrites that have been circulating on the Internet are incorrect. In the following rewrite, the semicolon contains an extra Transfer Character "\", which is required in Apache, but not in nginx. Rewrite ^/thread-([0-9] +)-([0-9] +)-([0-9] +) \. html $/viewthread. php? Tid = $1 extra = Page \ % 3d $3 page = $2 last; correct should be rewrite ^/thread-([0-9] +) -([0-9] +)-([0-9] + )\. HTML $/viewthread. PHP? Tid = $1 extra = Page % 3d $3 page = $2 last; this
Mod Rewrite of Apache
Rewriteengine on rewritebase/B2B/website/rewriterule ^ article-([0-9] +) \. html $ view_details.php? Browse = Profile id = $1
The above tests passed. If it doesn't work, the key is the server side. How can we change it in the future?
You can add a/503 (ID)/title.htm to the image. You can use 503 or other numbers or ABC to do the same. It is not ideal even if you think of oabc, learning II, he just defines all the functions with numbers.
this useful reference
register_globals = OFF, $ _ post ['user _ name'] and $ _ post ['user _ pass'] should be used for receiving the next program.When register_globals = on, the next program can directly use $ user_name and $ user_pass to accept the value.For more details, seeHttp://www.phpfans.net/bbs/archiver? Tid-234.htmWe recommend that you modify the settings as needed.8 PhP5 Time DifferenceTime Difference: eight hoursWhy? The Time Zone settings are added for the PhP
mode.
When you use the Intel thread recorder in standalone mode with the/qopenmp_profile option, you can simulate the code that uses the OpenMP Automatic Parallel Compilation instruction. Although the application actually runs in serial mode, it seems that the code is running in parallel. The following are important notes: you must use the omp_set_num_threads () function to pass the single OMP thread in the configuration dialog box, run the Intel thread arc
. Otherwise, it cannot be used even if it is set as follows.Check whether the. htaccess file exists in the directory where the forum is located. If not, create this file manually.The. htaccess file cannot be directly created in Win32 system. You can copy one copy from other systems,You can also download this file in the Discuz.net Technical Support Section. (In fact, simply rename the file in dos or save it as NotePad)Edit and modify the. htaccess file and add the following content:# Enable Rewr
locally, you are advised to enable the NOTICE prompt.
Search
Error_reporting = E_ALL ~ E_NOTICE
Change
Error_reporting = E_ALL
In addition, you can use error_reporting () to control the output of error reports. for details, refer to the following Manual.
7 register_globals
It is also Off by default for security reasons.
When register_globals = Off, $ _ POST ['User _ name'] and $ _ POST ['User _ pass'] should be used for receiving the next program.
When register_globals = On, the next program ca
In actual work, the implementation of MySQL delayed backup bitsCN.com often happens when you accidentally delete the database or table and regret it. is there any regret? The delayed backup described today can be achieved.
Delayed backup causes slave to lag behind the master for a period of time. when a misoperation occurs, you only need to immediately stop slave synchronization, and you can easily retrieve the accidentally deleted data from the delayed backup database.
The following describ
Php checks whether a visitor is a search engine spider's function code. For more information, see. Php checks whether a visitor is a search engine spider's function code. For more information, see.
The code is as follows:
/*** Determine whether it is a search engine spider** @ Author Eddy* @ Return bool*/Function isCrawler (){$ Agent = strtolower ($ _ SERVER ['http _ USER_AGENT ']);If (! Empty ($ agent )){$ SpiderSite = array ("TencentTraveler ","Baiduspider + ","BaiduGame ","Googlebot ","Msnbo
Prohibit IP addresses in a region from accessing the website, and do not filter the search engine's spider php code.
Function get_ip_data () {$ ip = file_get_contents (" http://ip.taobao.com/service/getIpInfo.php?ip= ". Get_client_ip (); $ ip = json_decode ($ ip); if ($ ip-> code) {return false;} $ data = (array) $ ip-> data; if ($ data ['region'] = 'hubei province '! IsCrawler () {exit (' http://www.lvtao.net ') ;}} Function isCrawler () {$ spiderSite = array ("TencentTraveler", "Baiduspider +
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.