Jump to content


Detect Websites Using Your File


5 replies to this topic

#1 The Creator

    Young Padawan

  • Members
  • Pip
  • 115 posts
  • Gender:Male
  • Location:England
  • Interests:Computers, Music, Technology, Sport

Posted 06 April 2008 - 09:10 AM

Is it possible by using any coding language to find all the URLs where for example "image.gif" which is on your server is being displayed?

Thanks,

The Creator

#2 rc69

    PHP Master PD

  • P2L Staff
  • PipPipPipPip
  • 3,827 posts
  • Gender:Male
  • Location:Here
  • Interests:Web Development

Posted 06 April 2008 - 10:49 PM

Aside from Google? Yes, it's called regular expressions. You download the source of the site in question and then run it through a script that would then check for your url.

However, if you describe your reasons for wanting to do such a thing, i'm sure somebody here could come up with a better idea (such has .htaccess hotlink protection, or checking your server logs to see where your bandwidth is going).

#3 The Creator

    Young Padawan

  • Members
  • Pip
  • 115 posts
  • Gender:Male
  • Location:England
  • Interests:Computers, Music, Technology, Sport

Posted 08 April 2008 - 06:22 AM

I've made a protest site called orangeflag.org where people copy and paste a bit of code onto their site to show that they support Tibet and it's current issues.

I want to be able to create a list of all the sites who have copied and pasted the code onto one of their pages. This means i can link back to them without them having to email me telling me they've done it. :)

any ideas?

The Creator

#4 xXKZ2RageXx

    Young Padawan

  • Members
  • Pip
  • 41 posts
  • Gender:Male

Posted 08 April 2008 - 12:24 PM

sounds like making a php-bot would help(something like search engine's bots?), but I'm sure there's something a bit better than that for you to use..just throwing that out there, though.

#5 rc69

    PHP Master PD

  • P2L Staff
  • PipPipPipPip
  • 3,827 posts
  • Gender:Male
  • Location:Here
  • Interests:Web Development

Posted 08 April 2008 - 04:42 PM

If you're running cPanel, in /access-logs there should be a filed named 'yourdomain.com.' You should be able to parse that to see who's linking.

However, i would recommend having a cron job do this periodically so that you don't bog down your server. It would take more time then i have to give you a detailed algorithm of how to do this, but in essence, you're just looking for links that you don't already have databased (one line at a time, under certain 'regularly expressable' conditions).

#6 The Creator

    Young Padawan

  • Members
  • Pip
  • 115 posts
  • Gender:Male
  • Location:England
  • Interests:Computers, Music, Technology, Sport

Posted 09 April 2008 - 10:17 AM

That sounds all a little complicated :yodasearch:


I'm probably best at sticking to emails :| thanks for the advice tho :)





1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users