Pinging when user visit blog

kobalt2

Newbie
Joined
May 27, 2016
Messages
3
Reaction score
0
Hi

Any tips where can I find a script/plugin/code which will ping 1 URL (from URL list) and ping few website everytime someone visit my blog?
 
you could easily hack the script here:
Code:
http://www.blackhatworld.com/blackhat-seo/member-downloads/165783-get-indexing-backlinking-script-3000-backlinks.html

remove the first section that submits the site to the url..
then just have a list of urls to ping, on each call increment the list entry (you'll need to save this to a file etc) and ping that url

then modify your template to call this script per visit

why not just use a cron job? and sequence through your list

Si
 
ok, I've made a version for you.

php code download (978 bytes):
Code:
http://www.mediafire.com/?1brnmhb544qfodc
VT: Clean
Code:
http://www.virustotal.com/file-scan/report.html?id=1dd7f7bc4b94b614efce97718a97f4391de082eebc2914b52c1f25327d8f97e5-1304450429
there is a list or urls in there in a file called pinger_urls.txt
Code:
http://www.google.com
http://www.ebay.com
http://www.yahoo.com
http://bbc.co.uk
hotmail.com
godaddy.com
bing.com
http://www.microcosft.com
I've set them with and without www. and http:// to test
you can use longer file paths too.

to use this with WP, simply do this:

1. download and unpack pinger.rar on your machine
2. exit pinger_urls.txt to hold your url list
3. upload pinger.php and pinger_urls.txt to your website, i put it in the main root folder, so http://yoursite.com/

you can now test that all is good.
simply visit
Code:
http://www.yoursite.com/pinger.php
you will see nothing on the screen, this is normal, it returns nothing as it's meant to be called from inside other pages

if you look in the folder where you put the files, you should now see pinger_urlcounter.txt has been made
Everytime you call the pinger.php the number in this file will increase, up to the url count in your pinger_urls.txt file, then back to 0

everytime you call pinger.php it pings a website from your url list in the background.

Now to make it work in WP:

I tested it by calling it from the footer file, but you could use any - for example only on certain posts or the main page etc

- go to your WP dashboard.
- then Appearance
- Editor
- now select the file to locate it in - I used footer.php in my test
- now in the top of the file AFTER the <?php insert this
Code:
require_once("http://www.yoursite.com/pinger.php");
Dont forget to change the url to where you placed pinger.php file !!
- then click the Update File button

thats it.. done

everytime a page is visited, the pinger.php is called, you can monitor this by watching the count change in the pinger_urlcounter.txt file

you don't need to ftp etc for that, just call it from the browser:
Code:
http://yoursite.com/pinger_urlcounter.txt
enjoy..

Si
 
Thanks a lot!!! :D

Any tips how to replace hosting IP to visitor IP ;)
 
No worries, happy to help

I'll take a look at the IP question, I won't get chance until this evening, but will post back.

Si
 
Thanks a lot!!! :D

Any tips how to replace hosting IP to visitor IP ;)


I'm probably misunderstanding this, but if the page/URL is pinged via the same IP everytime, won't the IP be temp blocked?

I assumed the reason for all this would be so that the URL is being pinged from lots of different locations (IP addresses) and therefore will be seen to be more popular by Google?

Like I say, I'm sure I'm missing something here.
 
the pinger script uses ping-o-matic.
That has in-built over-pinging protection, if you call it for the same url too fast, it tells you to slow down.

it all really depends on the size of your url list and visitor frequency.
- say you have 1000 urls and get 1000 visitors a day, then each url will only get pinged once that day.
- say you have 10 urls and 1000 visitors a day, each link will get pinged 100 times that day
and so on.

the script could be changed to only allow the entire list to be pinged once per day, many things could be done - only call it from main index page, use cookies to ping once per visitor (that visit, that day, that month etc)

the above script was just a quick throw together solution, not in any way developed to be the perfect answer.

I'll take a look later at using the visitors IP addy in the ping request.
I might even make it as a plug-in, always fancied making one...

Si
 
But Wordpress already has a pinging function where you put in the ping list and each new post will be pinged.

Is there a benefit of pinging a new post/URL more than once from the same IP address to the same places?
 
But Wordpress already has a pinging function where you put in the ping list and each new post will be pinged.

Is there a benefit of pinging a new post/URL more than once from the same IP address to the same places?

But that is not what the OP asked about, please see the opening post.

This is pinging a url from a list, nothing to do with the WP that is hosting it. - the visitor to the WP site just triggers the ping process, thats it, nothing more to do with WP, its settings or content
 
I've had a quick look, there is no decent way to add the user IP addy to the ping request.
The best that could be done is to run the request through a proxy.

Si
 
But that is not what the OP asked about, please see the opening post.

This is pinging a url from a list, nothing to do with the WP that is hosting it. - the visitor to the WP site just triggers the ping process, thats it, nothing more to do with WP, its settings or content

Which is why I asked - is there any benefit of a URL being pinged more than once? If so; why? It's from the same IP (hence why the OP asked if it's possible to change the host IP to the visitor IP) and to the same destination.
 
Hi,

I'll dig it out and re-up (I think I still have it), will be later tomorrow tho...
I'll pop an update here..

Si
 
Hi,

You're in luck, I have the file at hand...

Download:
Code:
http://www.multiupload.com/5A3S0FMTHE

VT: Clean (same as one above - same file)
Code:
http://www.virustotal.com/file-scan/report.html?id=1dd7f7bc4b94b614efce97718a97f4391de082eebc2914b52c1f25327d8f97e5-1304450429

Enjoy,
Si
 
Back
Top