一个比较复杂的CPC代码分析
<IMG SRC="http://service.bfast.com/bfast/serve?bfmid=XXXXXXXXX&siteid=XXXXXXXX&bfpage=spsearch4" BORDER="0" WIDTH="1" HEIGHT="1" NOSAVE >
<FORM ACTION="http://service.bfast.com/bfast/click" >
<INPUT TYPE="hidden" NAME="siteid" VALUE="AAAAAAAA" >
<INPUT TYPE="hidden" NAME="bfpage" VALUE="BBBBBBBB">
<INPUT TYPE="hidden" NAME="bfmid" VALUE="CCCCCCCC" >
<TABLE WIDTH="150" BORDER="0" CELLSPACING="0" CELLPADDING="0" HEIGHT="195" BGCOLOR="#FFFFCC">
<TR>
<TD COLSPAN="2" VALIGN="TOP" BGCOLOR="#000066"><IMG SRC="http://superpages.com/befreeimages/SPBoxHeaderVert.gif" WIDTH="150" HEIGHT="33"></TD>
</TR>
<TR>
<TD WIDTH="5" VALIGN="TOP">
<IMG SRC="http://superpages.com/images-yp/decor/images/new/spacer.gif" HEIGHT="195" WIDTH="12" ALT=" ">
</TD>
<TD WIDTH="137" VALIGN="TOP">
<IMG SRC="http://superpages.com/images-yp/decor/images/new/spacer.gif" WIDTH="137" HEIGHT="13" alt=" "><BR>
<FONT FACE="Arial, Helvetica, sans-serif" SIZE="2"><B>Category</B> (<A HREF="http://yp.superpages.com/categorybrowser.phtml">Browse</A></FONT><BR>
<IMG SRC="http://superpages.com/images-yp/decor/images/new/spacer.gif" WIDTH="137" HEIGHT="1" ALT=""><BR>
<INPUT NAME="C" SIZE="13" TYPE="text" VALUE="">
<BR>
<IMG SRC="http://superpages.com/images-yp/decor/images/new/spacer.gif" WIDTH="137" HEIGHT="7" alt=" "><BR>
<FONT COLOR="#000000" FACE="Arial, Helvetica, sans-serif" SIZE="2">or Business Name</FONT><BR>
<IMG SRC="http://superpages.com/images-yp/decor/images/new/spacer.gif" WIDTH="137" HEIGHT="1" ALT=""><BR>
<INPUT NAME="N" SIZE="13" TYPE="text" VALUE="">
<BR>
<IMG SRC="http://superpages.com/images-yp/decor/images/new/spacer.gif" WIDTH="137" HEIGHT="7" alt=" "><BR>
<FONT COLOR="#000000" FACE="Arial, Helvetica, sans-serif" SIZE="2">City</FONT><BR>
<IMG SRC="http://superpages.com/images-yp/decor/images/new/spacer.gif" WIDTH="137" HEIGHT="1" ALT=""><BR>
<INPUT NAME="T" SIZE="13" TYPE="text" VALUE="">
<BR>
<IMG SRC="http://superpages.com/images-yp/decor/images/new/spacer.gif" WIDTH="137" HEIGHT="7" alt=" "><BR>
<FONT COLOR="#000000" FACE="Arial, Helvetica, sans-serif" SIZE="2"> State (required)</FONT><BR>
<IMG SRC="http://superpages.com/images-yp/decor/images/new/spacer.gif" WIDTH="137" HEIGHT="1" ALT=""><BR>
<SELECT NAME="S" TABINDEX=4>
<OPTION VALUE="AK">AK</OPTION>
<OPTION VALUE="AL">AL</OPTION>
<OPTION VALUE="AR">AR</OPTION>
<OPTION VALUE="AZ">AZ</OPTION>
<OPTION VALUE="CA">CA</OPTION>
<OPTION VALUE="CO">CO</OPTION>
<OPTION VALUE="CT">CT</OPTION>
<OPTION VALUE="DC">DC</OPTION>
<OPTION VALUE="DE">DE</OPTION>
<OPTION VALUE="FL">FL</OPTION>
<OPTION VALUE="GA">GA</OPTION>
<OPTION VALUE="HI">HI</OPTION>
<OPTION VALUE="IA">IA</OPTION>
<OPTION VALUE="ID">ID</OPTION>
<OPTION VALUE="IL">IL</OPTION>
<OPTION VALUE="IN">IN</OPTION>
<OPTION VALUE="KS">KS</OPTION>
<OPTION VALUE="KY">KY</OPTION>
<OPTION VALUE="LA">LA</OPTION>
<OPTION VALUE="MA">MA</OPTION>
<OPTION VALUE="MD">MD</OPTION>
<OPTION VALUE="ME">ME</OPTION>
<OPTION VALUE="MI">MI</OPTION>
<OPTION VALUE="MN">MN</OPTION>
<OPTION VALUE="MO">MO</OPTION>
<OPTION VALUE="MS">MS</OPTION>
<OPTION VALUE="MT">MT</OPTION>
<OPTION VALUE="NC">NC</OPTION>
<OPTION VALUE="ND">ND</OPTION>
<OPTION VALUE="NE">NE</OPTION>
<OPTION VALUE="NH">NH</OPTION>
<OPTION VALUE="NJ">NJ</OPTION>
<OPTION VALUE="NM">NM</OPTION>
<OPTION VALUE="NV">NV</OPTION>
<OPTION VALUE="NY">NY</OPTION>
<OPTION VALUE="OH">OH</OPTION>
<OPTION VALUE="OK">OK</OPTION>
<OPTION VALUE="OR">OR</OPTION>
<OPTION VALUE="PA">PA</OPTION>
<OPTION VALUE="RI">RI</OPTION>
<OPTION VALUE="SC">SC</OPTION>
<OPTION VALUE="SD">SD</OPTION>
<OPTION VALUE="TN">TN</OPTION>
<OPTION VALUE="TX">TX</OPTION>
<OPTION VALUE="UT">UT</OPTION>
<OPTION VALUE="VA">VA</OPTION>
<OPTION VALUE="VT">VT</OPTION>
<OPTION VALUE="WA">WA</OPTION>
<OPTION VALUE="WI">WI</OPTION>
<OPTION VALUE="WV">WV</OPTION>
<OPTION VALUE="WY">WY</OPTION>
</SELECT>
<INPUT TYPE="hidden" NAME="R" VALUE="N">
<INPUT TYPE="submit" TABINDEX=5 NAME="search" VALUE="Find It">
</TD>
</TR>
</TABLE>
</FORM>
首先,我们先把相关的图片代码去掉
<IMG SRC="http://service.bfast.com/bfast/serve?bfmid=XXXXXXXXX&siteid=XXXXXXXX&bfpage=spsearch4" BORDER="0" WIDTH="1" HEIGHT="1" NOSAVE >
<FORM ACTION="http://service.bfast.com/bfast/click" >
<INPUT TYPE="hidden" NAME="siteid" VALUE="AAAAAAAA" >
<INPUT TYPE="hidden" NAME="bfpage" VALUE="BBBBBBBB">
<INPUT TYPE="hidden" NAME="bfmid" VALUE="CCCCCCCC" >
<INPUT NAME="C" SIZE="13" TYPE="text" VALUE="">
<INPUT NAME="N" SIZE="13" TYPE="text" VALUE="">
<INPUT NAME="T" SIZE="13" TYPE="text" VALUE="">
<BR>
<SELECT NAME="S" TABINDEX=4>
<OPTION VALUE="AK">AK</OPTION>
<OPTION VALUE="AL">AL</OPTION>
<OPTION VALUE="AR">AR</OPTION>
<OPTION VALUE="AZ">AZ</OPTION>
<OPTION VALUE="CA">CA</OPTION>
<OPTION VALUE="CO">CO</OPTION>
<OPTION VALUE="CT">CT</OPTION>
<OPTION VALUE="DC">DC</OPTION>
<OPTION VALUE="DE">DE</OPTION>
<OPTION VALUE="FL">FL</OPTION>
<OPTION VALUE="GA">GA</OPTION>
<OPTION VALUE="HI">HI</OPTION>
<OPTION VALUE="IA">IA</OPTION>
<OPTION VALUE="ID">ID</OPTION>
<OPTION VALUE="IL">IL</OPTION>
<OPTION VALUE="IN">IN</OPTION>
<OPTION VALUE="KS">KS</OPTION>
<OPTION VALUE="KY">KY</OPTION>
<OPTION VALUE="LA">LA</OPTION>
<OPTION VALUE="MA">MA</OPTION>
<OPTION VALUE="MD">MD</OPTION>
<OPTION VALUE="ME">ME</OPTION>
<OPTION VALUE="MI">MI</OPTION>
<OPTION VALUE="MN">MN</OPTION>
<OPTION VALUE="MO">MO</OPTION>
<OPTION VALUE="MS">MS</OPTION>
<OPTION VALUE="MT">MT</OPTION>
<OPTION VALUE="NC">NC</OPTION>
<OPTION VALUE="ND">ND</OPTION>
<OPTION VALUE="NE">NE</OPTION>
<OPTION VALUE="NH">NH</OPTION>
<OPTION VALUE="NJ">NJ</OPTION>
<OPTION VALUE="NM">NM</OPTION>
<OPTION VALUE="NV">NV</OPTION>
<OPTION VALUE="NY">NY</OPTION>
<OPTION VALUE="OH">OH</OPTION>
<OPTION VALUE="OK">OK</OPTION>
<OPTION VALUE="OR">OR</OPTION>
<OPTION VALUE="PA">PA</OPTION>
<OPTION VALUE="RI">RI</OPTION>
<OPTION VALUE="SC">SC</OPTION>
<OPTION VALUE="SD">SD</OPTION>
<OPTION VALUE="TN">TN</OPTION>
<OPTION VALUE="TX">TX</OPTION>
<OPTION VALUE="UT">UT</OPTION>
<OPTION VALUE="VA">VA</OPTION>
<OPTION VALUE="VT">VT</OPTION>
<OPTION VALUE="WA">WA</OPTION>
<OPTION VALUE="WI">WI</OPTION>
<OPTION VALUE="WV">WV</OPTION>
<OPTION VALUE="WY">WY</OPTION>
</SELECT>
<INPUT TYPE="hidden" NAME="R" VALUE="N">
<INPUT TYPE="submit" TABINDEX=5 NAME="search" VALUE="Find It">
</TD>
</TR>
</TABLE>
</FORM>
<FORM ACTION="http://service.bfast.com/bfast/click" >
我们看这个
就是一个FORM表单
那么CLICK的前段就是http://service.bfast.com/bfast/click?
然后我们分析下面的部分
siteid=AAAAAAAA&bfpage=BBBBBBBB&bfmid=CCCCCCCC
相信大家设置过搜索的也能搞定这步了
那么前一部分的CLICK设置就是
http://service.bfast.com/bfast/c ... &bfmid=CCCCCCCC
其实设置成这样,BF的系统已经可以加钱了
但是这样的话SP很容易就能查出来你就是EMU
所以我们就要来分析下面的部分
如果是383是否可以把这整段往里面一贴?
不行,后面有很多关键字要设置
用FORM RULE应该可以
不过我们现在先来分析370的方法
只要370会对付了,以后用383的时候就有办法对付
设置FORM RULE的话可能会出现信息不对称的问题,所以我觉得还是370对付这类的比较好
然后我们看这段
<INPUT NAME="C" SIZE="13" TYPE="text" VALUE="">
<INPUT NAME="N" SIZE="13" TYPE="text" VALUE="">
<INPUT NAME="T" SIZE="13" TYPE="text" VALUE="">
<INPUT NAME="C" SIZE="13" TYPE="text" VALUE=""> 对应的就是Category
or Business Name对应的就是<INPUT NAME="N" SIZE="13" TYPE="text" VALUE="">
City就是<INPUT NAME="T" SIZE="13" TYPE="text" VALUE="">
那么这一段对应的就是C=[C:\Category.txt]&N=[C:\Name.txt]&T=[C:\City.txt]
这时候就要收集点相关信息,Category.txt写入分类,就和搜索关键字一个道理
Name.txt这里面写如商业名称,比如BANK拉,SHOP之类的
City.txt就是城市列表
<SELECT NAME="S" TABINDEX=4>
<OPTION VALUE="AK">AK</OPTION>
<OPTION VALUE="AL">AL</OPTION>
<OPTION VALUE="AR">AR</OPTION>
<OPTION VALUE="AZ">AZ</OPTION>
<OPTION VALUE="CA">CA</OPTION>
<OPTION VALUE="CO">CO</OPTION>
<OPTION VALUE="CT">CT</OPTION>
<OPTION VALUE="DC">DC</OPTION>
<OPTION VALUE="DE">DE</OPTION>
<OPTION VALUE="FL">FL</OPTION>
<OPTION VALUE="GA">GA</OPTION>
<OPTION VALUE="HI">HI</OPTION>
<OPTION VALUE="IA">IA</OPTION>
<OPTION VALUE="ID">ID</OPTION>
<OPTION VALUE="IL">IL</OPTION>
<OPTION VALUE="IN">IN</OPTION>
<OPTION VALUE="KS">KS</OPTION>
<OPTION VALUE="KY">KY</OPTION>
<OPTION VALUE="LA">LA</OPTION>
<OPTION VALUE="MA">MA</OPTION>
<OPTION VALUE="MD">MD</OPTION>
<OPTION VALUE="ME">ME</OPTION>
<OPTION VALUE="MI">MI</OPTION>
<OPTION VALUE="MN">MN</OPTION>
<OPTION VALUE="MO">MO</OPTION>
<OPTION VALUE="MS">MS</OPTION>
<OPTION VALUE="MT">MT</OPTION>
<OPTION VALUE="NC">NC</OPTION>
<OPTION VALUE="ND">ND</OPTION>
<OPTION VALUE="NE">NE</OPTION>
<OPTION VALUE="NH">NH</OPTION>
<OPTION VALUE="NJ">NJ</OPTION>
<OPTION VALUE="NM">NM</OPTION>
<OPTION VALUE="NV">NV</OPTION>
<OPTION VALUE="NY">NY</OPTION>
<OPTION VALUE="OH">OH</OPTION>
<OPTION VALUE="OK">OK</OPTION>
<OPTION VALUE="OR">OR</OPTION>
<OPTION VALUE="PA">PA</OPTION>
<OPTION VALUE="RI">RI</OPTION>
<OPTION VALUE="SC">SC</OPTION>
<OPTION VALUE="SD">SD</OPTION>
<OPTION VALUE="TN">TN</OPTION>
<OPTION VALUE="TX">TX</OPTION>
<OPTION VALUE="UT">UT</OPTION>
<OPTION VALUE="VA">VA</OPTION>
<OPTION VALUE="VT">VT</OPTION>
<OPTION VALUE="WA">WA</OPTION>
<OPTION VALUE="WI">WI</OPTION>
<OPTION VALUE="WV">WV</OPTION>
<OPTION VALUE="WY">WY</OPTION>
</SELECT>
这一段自然就是州名,S=[C:\S.TXT],这个里面写入AK,AL.....
跟搜索关键字一样,一个一行
结合起来就是C=[C:\Category.txt]&N=[C:\Name.txt]&T=[C:\City.txt]&S=[C:\S.TXT]
理论上完整的CLICK设置就是:service.bfast.com/bfast/click?siteid=AAAAAAAA&bfpage=BBBBBBBB&bfmid=CCCCCCCC&C=[C:\Category.txt]&N=[C:\Name.txt]&T=[C:\City.txt]&S=[C:\S.TXT]
但是,这时候我们就要考虑到城市和州的对应性
T=[C:\City.txt]&S=[C:\S.TXT]
这样设置显然对应不上,那么我们就可以用一个变通的办法
我们可以把CITY和S写一个文本里,这样这个问题就解决了
代码写成这样T=[C:\City&S.txt]
那么CITY&S.TXT这个文本里就可以写
SAN JONE&S=CA
OAKLAND&S=CA
Miami&S=FL
....
这样CACA在分析的时候就会提取文本里的那段代码,就相当于用SAN JONE&S=CA替换了[C:\City&S.txt],这样他完整的提交代码就是
service.bfast.com/bfast/click?siteid=AAAAAAAA&bfpage=BBBBBBBB&bfmid=CCCCCCCC&C=[C:\Category.txt]&N=[C:\Name.txt]&T=SAN JONE&S=CA
而Category和Business Name是OR的关系,同时满足两个条件的话又有一定的难度,所以我们可以设置两个CACA进程,一个CLICK写:
service.bfast.com/bfast/click?siteid=AAAAAAAA&bfpage=BBBBBBBB&bfmid=CCCCCCCC&C=&N=[C:\Name.txt]&T=[C:\City&S.txt]
另外一个进程序写为service.bfast.com/bfast/click?siteid=AAAAAAAA&bfpage=BBBBBBBB&bfmid=CCCCCCCC&C=[C:\Category.txt]&N=&T=[C:\City&S.txt]
而上面的C= 或是N=后面不跟字段的学过程序的应该就是知道等于空值 |