{"id":809,"date":"2008-07-09T13:39:25","date_gmt":"2008-07-09T05:39:25","guid":{"rendered":"https:\/\/www.dremi.info\/?p=775"},"modified":"2008-07-09T13:39:25","modified_gmt":"2008-07-09T05:39:25","slug":"membuat-auto-surf-dengan-php","status":"publish","type":"post","link":"https:\/\/www.dremi.info\/tutorials\/php\/membuat-auto-surf-dengan-php.html","title":{"rendered":"Membuat Auto Surf dengan PHP"},"content":{"rendered":"

\"\"Pernah denger autosurf kan ? nyang kaya web ini ni:
\nhttp:\/\/www.trafficracer.com\/auto-surf.php?user=31251
\nnah ntu bisa dibikin sederhana pake META REFRESH, tapi kali in igw gabungin make PHP untuk merandom halaman na…
\nSimak yak.<\/p>\n

 <\/div>\n

Kita ga pake Database, langsung make Array untuk halaman yang bersangkutan ajah. Disini gw pake Frame bwatmenampilkan halaman hasil random na:
\nni bwat index.html na
\nCode:<\/p>\n

\n&lt;!DOCTYPE html PUBLIC &quot;-\/\/W3C\/\/DTD XHTML 1.0 Frameset\/\/EN&quot; &quot;http:\/\/www.w3.org\/TR\/xhtml1\/DTD\/xhtml1-frameset.dtd&quot;&gt;\n&lt;html xmlns=&quot;http:\/\/www.w3.org\/1999\/xhtml&quot;&gt;\n&lt;head&gt;\n&lt;meta http-equiv=&quot;Content-Type&quot; content=&quot;text\/html; charset=iso-8859-1&quot; \/&gt;\n&lt;title&gt;Tutorial Photoshop, SEO, CSS&lt;\/title&gt;\n&lt;\/head&gt;\n&lt;frameset rows=&quot;120,*&quot; frameborder=&quot;yes&quot; border=&quot;0&quot; framespacing=&quot;0&quot;&gt;\n&lt;frame src=&quot;top.php&quot; name=&quot;topFrame&quot; scrolling=&quot;No&quot; noresize=&quot;noresize&quot; id=&quot;topFrame&quot; title=&quot;topFrame&quot; \/&gt;\n&lt;frame src=&quot;target.html&quot; name=&quot;mainFrame&quot; id=&quot;mainFrame&quot; title=&quot;mainFrame&quot; \/&gt;\n&lt;\/frameset&gt;\n&lt;noframes&gt;&lt;body&gt;\n&lt;\/body&gt;\n&lt;\/noframes&gt;&lt;\/html&gt;\n<\/pre>\n

tros bikin masing masing source bwat frame top dan target.
\nFile top.php
\nCode:<\/p>\n

\n&lt;html&gt;\n&lt;?\nfunction recoverPass($length)\n{\n$temp_recpass=&quot;&quot;;\nsrand ((float) microtime() * 10000000);\n$input = array (\n&quot;http:\/\/dremi468.blogspot.com&quot;,\n&quot;http:\/\/www.csslovers.co.cc&quot;,\n&quot;https:\/\/www.dremi.info\/tutorial\/photoshop\/merancang-website-full-abis.html&quot;,\n&quot;https:\/\/www.dremi.info\/tutorial\/photoshop\/sony-ericsson-logo.html&quot;\n);\n$rand_keys = array_rand ($input, 24);\nfor ($i=0; $i&lt;$length; $i++)\n{\n$temp_recpass = $temp_recpass . $input[$rand_keys[$i]];\n}\nreturn $temp_recpass;\n}\n$temp_recpass = recoverPass(1);\nif($temp_recpass=='') { $pageLoad = &quot;http:\/\/dremi468.blogspot.com&quot;; } else  { $pageLoad = $temp_recpass; }\n$randRefreshTop = rand(60, 120);\n$randRefreshBot = rand(30, 60);\n?&gt;\n&lt;head&gt;\n&lt;title&gt;Refresh JavaScript Example&lt;\/title&gt;\n&lt;META HTTP-EQUIV=&quot;refresh&quot; CONTENT=&quot;&lt;? echo $randRefreshTop; ?&gt;&quot;&gt;\n&lt;SCRIPT LANGUAGE=&quot;JavaScript&quot;&gt;\n&lt;!--\nfunction refreshFrame() {\nparent.mainFrame.location.href = '&lt;? echo $pageLoad; ?&gt;';\nsetTimeout('refreshFrame()',1000*&lt;? echo $randRefreshBot; ?&gt;);\n}\nrefreshFrame();\n\/\/--&gt;\n&lt;\/SCRIPT&gt;\n&lt;meta http-equiv=&quot;Content-Type&quot; content=&quot;text\/html; charset=iso-8859-1&quot;&gt;&lt;style type=&quot;text\/css&quot;&gt;\n&lt;!--\nbody,td,th {\nfont-family: Arial, Helvetica, sans-serif;\nfont-size: 10px;\ncolor: #000000;\n}\nbody {\nbackground-color: #FFFFFF;\nmargin-left: 0px;\nmargin-top: 11px;\nmargin-right: 0px;\nmargin-bottom: 0px;\n}\n--&gt;\n&lt;\/style&gt;&lt;\/head&gt;\n&lt;!--\nUse the &quot;onload&quot; event to start the refresh process.\n--&gt;\n&lt;body&gt;\n&lt;center&gt;\nPage Load: &lt;strong style=&quot;color:#0099FF&quot;&gt;&lt;? echo $pageLoad; ?&gt;&lt;\/strong&gt; Top: &lt;strong style=&quot;color:#0099FF&quot;&gt;&lt;? echo $randRefreshTop; ?&gt;&lt;\/strong&gt; &amp; Bottom: &lt;strong style=&quot;color:#0099FF&quot;&gt;&lt;? echo $randRefreshBot; ?&gt;&lt;\/strong&gt;\n&lt;br&gt;\n&lt;?\nif ($HTTP_SERVER_VARS[&quot;HTTP_X_FORWARDED_FOR&quot;] != &quot;&quot;){\n\/\/ for proxy\n$IP = $HTTP_SERVER_VARS[&quot;HTTP_X_FORWARDED_FOR&quot;];\n$proxy = $HTTP_SERVER_VARS[&quot;REMOTE_ADDR&quot;];\n$host = @gethostbyaddr($HTTP_SERVER_VARS[&quot;HTTP_X_FORWARDED_FOR&quot;]);\n}else{\n\/\/ for normal user\n$IP = $HTTP_SERVER_VARS[&quot;REMOTE_ADDR&quot;];\n$host = @gethostbyaddr($HTTP_SERVER_VARS[&quot;REMOTE_ADDR&quot;]);\n}\necho &quot;IP: $IP | PROXY: $proxy | HOST: $host &lt;BR&gt;&quot;;\n?&gt;\n&lt;br&gt;\n&lt;a href=&quot;http:\/\/dremi468.blogspot.com\/2008\/06\/creating-corporate-writing-style.html&quot; target=&quot;_blank&quot;&gt;&lt;img src=&quot;http:\/\/i175.photobucket.com\/albums\/w126\/hairulazami\/banner%20468\/seo-articles468.gif&quot; border=&quot;0&quot; alt=&quot;Photobucket&quot;&gt;&lt;\/a&gt;\n&lt;\/center&gt;\n&lt;\/body&gt;\n&lt;\/html&gt;\n<\/pre>\n

contoh diatas array halaman URL lu bisa tambahin sendiri.
\nnah ni bwat target.html
\nCode:<\/p>\n

\n&lt;!DOCTYPE html PUBLIC &quot;-\/\/W3C\/\/DTD XHTML 1.0 Transitional\/\/EN&quot; &quot;http:\/\/www.w3.org\/TR\/xhtml1\/DTD\/xhtml1-transitional.dtd&quot;&gt;\n&lt;html xmlns=&quot;http:\/\/www.w3.org\/1999\/xhtml&quot;&gt;\n&lt;head&gt;\n&lt;meta http-equiv=&quot;Content-Type&quot; content=&quot;text\/html; charset=iso-8859-1&quot; \/&gt;\n&lt;title&gt;Untitled Document&lt;\/title&gt;\n&lt;\/head&gt;\n&lt;body&gt;\n&lt;\/body&gt;\n&lt;\/html&gt;\n<\/pre>\n

kalo lu liat target.html halaman na kosong melompong, nah itu memang tugasnya hanya bwat nerima hasil load halaman yang ditampung dalam array pada Top Frame.
\nCobain yak… asik kok.. \ud83d\ude00<\/p>\n

Share on Facebook<\/a><\/p>","protected":false},"excerpt":{"rendered":"

Pernah denger autosurf kan ? nyang kaya web ini ni: http:\/\/www.trafficracer.com\/auto-surf.php?user=31251 nah ntu bisa dibikin sederhana pake META REFRESH, tapi kali in igw gabungin make PHP untuk merandom halaman na… Simak yak. Share on Facebook<\/p>\n

Share on Facebook<\/a><\/p>","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[20],"tags":[40,210],"_links":{"self":[{"href":"https:\/\/www.dremi.info\/wp-json\/wp\/v2\/posts\/809"}],"collection":[{"href":"https:\/\/www.dremi.info\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.dremi.info\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.dremi.info\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.dremi.info\/wp-json\/wp\/v2\/comments?post=809"}],"version-history":[{"count":0,"href":"https:\/\/www.dremi.info\/wp-json\/wp\/v2\/posts\/809\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.dremi.info\/wp-json\/wp\/v2\/media?parent=809"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.dremi.info\/wp-json\/wp\/v2\/categories?post=809"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.dremi.info\/wp-json\/wp\/v2\/tags?post=809"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}