|
|
|||||||||
|
|||||||||
|
|||||||||
| |
|||
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Display Modes |
|
|
|
Stay one step ahead of the competition. Evaluate and give feedback
on some of the hottest web development tools on the market today.
Make your opinion heard! Click
Here
|
|
#1
|
||||
|
||||
|
I have come across a website that advertises links to other sites if they reciprocate a link on theirs. This website takes in all the linking information and images etc and then checks to see if you have put the link on your specified page on your website automatically. How is that possible? I know that there are websites that check your coding ie for meta tags, W3C compliant etc.
|
|
#2
|
|||
|
|||
|
It probably uses a server-side script to send a HTTP Request to the server for the page that it was told should have a link to its site and then it might use RegExp to check for the link.
I could code such a thing in PHP. |
|
#3
|
||||
|
||||
|
regex
If you do this you may want to have the regex make sure the link doesn't have a "rel=nofollow" in it.
|
|
#4
|
||||
|
||||
|
Would the script that sends out the http request for the page be a php script, if so what would the function/command be? After it has received the code for the page, the checking for a regular expression should be quite straight forward I guess. Thanks for that.
|
|
#5
|
||||
|
||||
|
scraping
It's impossible to say exactly how someone could be doing it. Curl, AJAX, ??? but maybe you can hack something from this (parse with regex or DOM instead of only "print"):
PHP Code:
|
![]() |
| Viewing: Dev Articles Community Forums > Web Design > Web Development > The code finding code! |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|