The Personal Weblog of Akshay Jain
This is probably the simplest script that anyone knowing (or even learning) PHP can create in about 15seconds. But I will still post it here just in case anyone is a total noob at PHP.
Purpose of this script: To check a certain given backlink on hundreds of webpages provided you know the URL of every webpage.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 | <?php $source = file_get_contents("source.txt"); $needle = "www.IamtryingtocheckThisPage"; //without http as I have imploded the http later in the script $new = explode("\n",$source); foreach ($new as $check) { $a = file_get_contents("http://".trim($check)); if (strpos($a,$needle)) { $found[] = $check; } else { $notfound[] = $check; } } echo "Matches that were found: \n ".implode("\n",$found)."\n"; echo "Matches that were not found \n". implode("\n",$notfound); ?> |
I am Akshay Jain a student in Economics and a web enthusiast. Most of my readers would be knowing me by my pseudonym champ_rock/champrock. This is my blog and I know I wont be keeping this updated. For contacting me, please use the contact form!
Please subscribe to the RSS feeds in order to get the latest updates on my blog!
ǝlƃooƃ noʎ ʞɔnɟ
airtel
apple
apple itunes
ascii
benchmark
broadband
browser
confidence motion
converter
ebaumsworld
firefox
fun
galwaysidle
Google
google campus ambassador
google gadget
google trends
google trends hacked
google trends spam
gtalk
hacked
hijack
how to poop at work
idle
iim
iim-i
iim pgp
iim student website
image to ascii
indian government
ipod
itunes
latest browsers
opera
opera functions
politics
ram
ram usage
redirect
swastika
taskmanager
trends hacked
typo
virus Broadband (India) (2)
Code Snippets (5)
Economics (1)
General (15)
Google (3)
Indian Politics (1)
Jainism (1)
Latest Buzz (6)
New Scripts (1)
opera (2)
WP Cumulus Flash tag cloud by Roy Tanck and Luke Morton requires Flash Player 9 or better.
Abhishek
October 4th, 2008 at 2:02 am
Sweet simple working one mate !! thanks !!
Book
October 14th, 2008 at 4:25 pm
thanks you very much. But is it view details? Backlinks web sites name or etc.
Akshay Jain
October 14th, 2008 at 4:34 pm
No. This is only for verifying if the backlink exists or not. I have not gone into those details but a little Regexp coding should make that work.
Q8iEnG
May 1st, 2009 at 9:44 am
This is awesome, thanks a lot mate I was looking for something similar
Q8iEnG
May 1st, 2009 at 9:52 am
by the way, I tried to use it but it is not working a lot of errors
I fixed them all, and I ended up with this error
Warning: implode() [function.implode]: Invalid arguments passed in /home/q8ieng/public_html/back/backlink.php on line 17
Matches that were found: Matches that were not found
here’s the link
http://q8ieng.com/back/backlink.php
Gitar
May 21st, 2009 at 10:20 am
Thanks!!!!
Zoom camera | Ryan
May 23rd, 2009 at 4:56 pm
Thanks for codes but where is demo site address ?
Deven Patel
May 28th, 2009 at 3:49 pm
Good Man… It is working.. Thnakx…
http://www.r3f3r.com
SEOLink Resources
May 29th, 2009 at 1:19 am
hi, great script you got up there. I tried and worked just fine. I will try to customize the code and apply some ajax on it.
thanks a lot.
paylasonline
June 7th, 2009 at 5:32 am
thanks you very much. But is it view details?
web development
June 18th, 2009 at 9:30 am
how to use this code because i am beginner level in php please guide me………any body can help me..
link building
June 18th, 2009 at 9:31 am
hi , this is nice post….
web development
June 18th, 2009 at 9:33 am
hi please urgent any body reply me for back link check coding ,…
Karamba
June 19th, 2009 at 10:44 am
Thanks you very much!!!
Marcus
July 23rd, 2009 at 2:28 am
Hey, nice tips. Perhaps I
hitman
July 31st, 2009 at 7:26 pm
It seems cool, i will try. Thanks for sharing
Link Degisimi
August 5th, 2009 at 12:01 pm
Thanks you very much
prasad
August 25th, 2009 at 10:51 am
What “source.txt” contains
Uzay
August 25th, 2009 at 9:12 pm
Than you for sharing..
Arif
August 27th, 2009 at 9:29 am
Hello..I have try your code..but how to check all link in the world without source.txt, it will detect all website that have my link in there. So the result will be like this :
needle : http://www.google.com
result :
1. xxx.com
2.xxxx.com
3.xxxxx.com
and so on. please reply me. thank’s
Backlink Backlink Backlink
September 16th, 2009 at 2:52 am
Thanks for sharing the codes buddy.
Unni Krishnan
September 27th, 2009 at 5:44 pm
HI..the script is good and its working…but i have a doubt as, its done like we provide the source websites…but my thought is currently it checks for the needle only on the index page right….since only the sites url is there..suppose a site has 10 article pages…and then i think we need to know how many links are there in the source site and check all those links for the “needle”…am i right…
evden eve nakliyat
October 9th, 2009 at 3:26 pm
useful script. thank you
www.hotellasuite.com
October 23rd, 2009 at 7:23 pm
thank you very much
southampton web designer
November 3rd, 2009 at 12:18 pm
Very nice, Thanks for sharing.
zombii
November 5th, 2009 at 9:59 pm
Great piece of code
Rapidshare Search
November 18th, 2009 at 1:29 am
Nice and simple.Thanks for this
JSmith
November 18th, 2009 at 2:30 am
Simple, but it work. Thanks.
Dany Permana
November 20th, 2009 at 8:55 pm
Very sweet script backlink, Good Work sir.. Keep your posting…
Gokul
December 2nd, 2009 at 12:47 pm
Please don’t waste time in sending thanks messages… if your code is working then post it here with source.txt… Don’t waste others time…
Hero
December 22nd, 2009 at 6:56 am
Very good script thanks for posting
Play-1st
January 2nd, 2010 at 2:13 pm
eee
Play-1st
January 2nd, 2010 at 2:14 pm
good
bedava film izle
January 7th, 2010 at 1:48 pm
ty nice script.
Eva
January 16th, 2010 at 2:44 pm
Thank you so much. Great script.
Submit Article
January 19th, 2010 at 9:45 pm
Missing Source.txt ?
Online E Learning Software
February 9th, 2010 at 3:23 pm
Nice Post,
Excellent Script
Thanks for sharing
Online Auction Script
February 10th, 2010 at 4:35 pm
Outstanding Back link checker script that is really useful.
Thanks for sharing
webconnect
February 19th, 2010 at 10:38 am
Nice script
but is it run ?
www.blumenversandguenstig.de
February 25th, 2010 at 1:00 am
Hi,
thank’s for the snippet! But what is, if the link is commented out like for examle:
? I think it would say the link is there, but actually it is not!