How to duplicate others website in 15 minutes

Spam No Comments

It’s a spam technique! I published it for funny. Please don’t use the following tips to create any duplicate websites.
Step 1
Use an software such as HTTrack to download the target website as HTML files.
Step 2
Open all html files in some advance text-editors (e.g. notepad++).

  • Replace the regular expression <!--.*--> to blank. It is to delete the all HTML comments.
  • After the above replacing, there will be blank line/lines in the HTML files. Don’t worry. Just use the regular expression \n\r to replace them.
  • It is almost done. However, the most website contains JavaScript code for Google Analytics or what else tracking code. You may just replace some part of the code with ease if you use the same tracking services. As I don’t really wanna publish the website. So I have replace the tracking code completely here by CTRL+R with the option recurse Rep! in notepad++. Or in CTRL+F model, select the Extended mode, and replace the new line with code \r\n to match all tracking codes. For example:
    <script type="text/javascript">\r\nvar gaJsHost = (("https:" == document.location.protocol) ? "https://ssl." : "http://www.");\r\ndocument.write(unescape("%3Cscript src='" + gaJsHost + "google-analytics.com/ga.js' type='text/javascript'%3E%3C/script%3E"));\r\n</script>\r\n<script type="text/javascript">\r\nvar pageTracker = _gat._getTracker("UA-5******-5");\r\npageTracker._trackPageview();\r\n</script>
  • Don’t forget to replace the official name as well as!

Google Bots Loves WordPress Really

Google, WordPress No Comments

Even without any links, Google bots still get the pagings of WordPress main page. And it has been indexed. I have to add noinex tag to those page!:)

Disable the Sociable on WordPress Pagings – blogplay

WordPress 1 Comment

I have met an issue with the Sociable at one of my sites which uses static page as front page. The social tool shows on the all pagings of WordPress main page(such as example.com/page/1/, example.com/page/2/,…)

So I have to modified the source code (sociable.php in the plugin folder). It is simple! Just insert the blue lines into the function sociable_html.

function sociable_html($display=array()) {
global $sociable_known_sites, $sociablepluginpath, $wp_query, $post;

if (get_post_meta($post->ID,'_sociableoff',true)) {
return "";
}
if (is_paged()) {
return "";
}

However, it seems it can’t fix the page one as the wordpress function is_paged() just count from 2nd paged page.

A Paged Page

is_paged()
When the page being displayed is “paged”. This refers to an archive or the main page being split up over several pages and will return true on 2nd and subsequent pages of posts. This does not refer to a Post or Page whose content has been divided into pages using the <!–nextpage–> QuickTag.

It’s reasonable, as the first paged page usually the same as home page or main archived page:) Anyway, I have to find a new methods to prevent the sociable on paged page. Just replace the three blue lines at above to or added the following behind them.

if (preg_match('/\/page\/\d+(\/)?$/i',$_SERVER['REQUEST_URI'])!==0) {
return "";
}

@ 2009-2012 - GGIN.Com
Entries RSS Comments RSS Log in