I need a perl script that will count a hit to another webpage that isn't on my server. Basically, I'm looking for a cheater's way to generate hits. I assure you that this is not a money making scam although it may sound like it.
When someone comes to my site, I want a perl script to be executed in a hidden frame. This I can do.
I don't know how to do this, though:
If someone where to legitimately go to this other webpage through my site (click on their link), it would take them to the page: www.site2.com/index.cgi?id=number
. Once on that page, the hit isn't counted unless the user follows a link on that page which goes to: www.site2.com/differentpage.html
. How can I use perl to go to differentpage.html and have site2.com think that the user clicked on the appropriate links?
I have the following script. However, it doesn't work. For some reason site2.com knows better. I think it's because the perl script is being executed from my server and site2.com is logging it as coming from my IP number instead of each user's IP number. I know that anything is possible in Perl, so any ideas? Thanks!
---Script that I have---
$ua = new LWP::UserAgent;
$ua->agent('Mozilla/4.0 (compatible; MSIE 5.0; Windows 95; DigExt)');
$req = GET 'http://www.site2.com/differentpage.html'