Category: Code

Bing URL Ripper for Dorks

Bing URL Ripper for Dorks

This is a URL ripper which uses bing to search for a dork i.e. “powered by wordpress” and output a list of thousands of wordpress sites. This example was actually setup to rip ning sites but you can adjust accordingly. Written in ruby for linux… #!/usr/bin/env ruby require ‘net/http’ require ‘uri’ class Search def search(search) search = search.gsub(‘ ‘, ‘+’) linksinc = Array.new paths =[‘/search?q=’ + search, ‘/search?q=’ + search...

UK Postcodes for major cities

UK Postcodes for major cities

This is useful for PoF advertising. A list of postcodes (Zip Codes) for major cities in the UK. Can be used for all sorts of other uses, as you can see this was formatted for a php geo-targeting script. $postcode[‘London’] = ‘W1D1AP’; // use for england radius 75miles $postcode[‘Birmingham’] = ‘B46QS’; $postcode[‘Leeds’] = ‘LS18TL’; //not working $postcode[‘Glasgow’] = ‘G22EN’; $postcode[‘Sheffield’] = ‘S38LN’; $postcode[‘Bradford’] = ‘BD12DH’; //not working $postcode[‘Edinburgh’] = ‘EH11JT’;...

Ruby & Selenium Script to Check Google SERP ranks

Ruby & Selenium Script to Check Google SERP ranks

Haven’t used this in a while but it used to work really well untill google would throw a captcha at you after the first 5000 queries. Might be of use to someone. It’s designed for linux and you’ll need selenium up and running to work it. #!/usr/bin/env ruby require ‘rubygems’ gem ‘selenium-client’ require ‘selenium/client’ system(‘java -jar ‘ + File.dirname(__FILE__) + ‘/../../selenium-server.jar &’) system(‘sleep 3’) $quickcheckres = Array.new #logfile dcom =...

Captcha Cracker For PHPBB written in Ruby

Captcha Cracker For PHPBB written in Ruby

It’s been a while since I’ve done much in SEO so I am going to start publishing some of my old scripts. This is a captcha cracker which uses gocr and image magick to decipher phpbb captchas. It’s written in ruby and was designed as part of a backlink building module. You’ll need linux, gocr, ruby and imagemagick to run it. apt-get is your friend. It works by first cleaning...

Rotating Offer Pages and Landing Pages in Prosper202

Rotating Offer Pages and Landing Pages in Prosper202

It is really easy to setup rotation of urls in Prosper but if you actually want to track which url is doing better or you want to test different landing pages it can be a little more challenging. One way to do this is to set each url or landing page up separately and then use a php rotation script to divide the traffic. Direct Linking to an Affiliate Offer...

Prosper 202 Mods 2012

Prosper 202 Mods 2012

Prosper202 mods 1) increase session life – stops it logging you out every five minutes when you are trying to work add the following line just before session_start(); in 202-config/connect.php ini_set(‘session.gc_maxlifetime’,99999); 2) bypass adverts on first page – bit naughty but I prefer to jump straight into the spy section to see whats been going on. edit 202-login.php line 80: header(‘location: /202-account’);  to   header(‘location: /tracking202’); or /tracking202/spy/ 3) Change $...

Custom Facebook Share and Twitter Tweet Buttons as WordPress Widget

Custom Facebook Share and Twitter Tweet Buttons as WordPress Widget

The following is the php code to make your own dynamic Facebook share and Twitter tweet buttons. Just place the images in the root directory and install the Samsarin PHP widget. Copy this code into a Samsarin Php widget and drag it to your sidebar. <a target=”_blank” href=”http://www.facebook.com/sharer.php?u=<?php echo “http://” . $_SERVER[‘HTTP_HOST’]  . $_SERVER[‘REQUEST_URI’]; ?>”><img src=”/share-facebook.png” alt=”Share on Facebook” border=”0″ /></a> <br /> <a title=”Share on Twitter” href=”http://twitter.com/share?_=1292093673417&amp;count=horizontal&amp;original_referer=<?php echo “http://”...

Using Adsense Section Targeting

Using Adsense Section Targeting

If you are getting lots of Groupon and Three ads on your adsense niche site the chances are it isn’t optimised correctly. By simply writing a short, keyword rich, snippet of what your site is about and surrounding it in the following tags you can manipulate which ads are shown. <!– google_ad_section_start –> Jet internet marketing is a leading UK resource for direct response marketers and affiliates. Find information and...

Facebook Share button more effective than Likes?

Facebook Share button more effective than Likes?

A recent post at SEOMoz suggested that their research has found a better correlation between facebook shares than Facebook likes. The full post is here and makes for an interesting read. One of the things that really caught my attention was in the comments and I quote: “After chatting with our Google rep it seems that FB shares have much more SEO weighting than FB Likes and similar. This is...

Custom wordpress 404 page for SEO

Custom wordpress 404 page for SEO

We have recently been purchasing used domain names from Godaddy auctions and Dropday. When we get the domains the first thing we do is look at what traffic they were pulling for what topics via google cached web search. If there is some good content on there and things we want to keep we will rebuild the page with the same url. The big advantage of this is that you...