reciprocal link checker script

This is a discussion on reciprocal link checker script within the PHP Language forums, part of the PHP Programming Forums category; Hello Everyone, I am coding the reciprocal link exchange form which there is function to check if my site info ...


Go Back   Usenet Forums > PHP Programming Forums > PHP Language

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 11-03-2004
work4u
 
Posts: n/a
Default reciprocal link checker script

Hello Everyone,
I am coding the reciprocal link exchange form which there is function
to check if my site info and link already been add on the partner site
page or not.

Please anyone who works on similar function gives me a hint how it
works or any sample code would be a great appreciation.

Thanks in advance.

webon
Reply With Quote
  #2 (permalink)  
Old 11-03-2004
neur0maniak
 
Posts: n/a
Default Re: reciprocal link checker script

I haven't tested the code, but I would assume it would be something like:


if (strpos(file_get_contents("http://other.site/"),
"http://my.link")!==false) {
// I'm linked
}else{
// I'm not linked
}

Though, you'd probably want to expand on that to check to see if it's
inside an <A HREF="">, etc. It's not ideal, because the other site could
have it linked in a text colour the same as the background colour in the
smallest font at the bottom of the page and it would still return as
linked...




work4u wrote:
> Hello Everyone,
> I am coding the reciprocal link exchange form which there is function
> to check if my site info and link already been add on the partner site
> page or not.
>
> Please anyone who works on similar function gives me a hint how it
> works or any sample code would be a great appreciation.
>
> Thanks in advance.
>
> webon

Reply With Quote
  #3 (permalink)  
Old 11-03-2004
Shawn Wilson
 
Posts: n/a
Default Re: reciprocal link checker script

neur0maniak wrote:
>
> I haven't tested the code, but I would assume it would be something like:
>
> if (strpos(file_get_contents("http://other.site/"),
> "http://my.link")!==false) {
> // I'm linked
> }else{
> // I'm not linked
> }
>
> Though, you'd probably want to expand on that to check to see if it's
> inside an <A HREF="">, etc. It's not ideal, because the other site could
> have it linked in a text colour the same as the background colour in the
> smallest font at the bottom of the page and it would still return as
> linked...
>
> work4u wrote:
> > Hello Everyone,
> > I am coding the reciprocal link exchange form which there is function
> > to check if my site info and link already been add on the partner site
> > page or not.
> >
> > Please anyone who works on similar function gives me a hint how it
> > works or any sample code would be a great appreciation.


Regarding the link "camouflage" -- I assume these types of systems keep track of
how many go to the ring site from the member sites and how many go to the member
sites from the ring site. It would be easy enough to set up a cron job that
flags disproportionate linking and emails the ring administrator with a
warning. The administrator could then manually check any suspicious members.

Shawn
--
Shawn Wilson
shawn@glassgiant.com
http://www.glassgiant.com
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT +1. The time now is 11:47 PM.


Powered by vBulletin® Version 3.6.8
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.0.0