Email alerts when a certain ip address visits your site/server/p202?

mpbiz

New member
Apr 29, 2010
2,822
57
0
I work a day job still and so when I uploaded 200 new ads the night before, and then they all get approved and turned on during the day, I need to be able know when they're approved so I can login and turn some of them off.

That way I can keep my current test set unaffected and wont have 200 new ads all running at once.

Is there any app or software that will send you an email or text when a certain ip address or set of ip's visits your server/domain/etc.

I'm using a VPS w/ cPanel if that helps.
 


Can't you just pause them, schedule them for the future, or set the bids to like $0.01?


... i don't know what platform you're using so just throwing that out there.
 
You can start with something as simple as this:

Code:
$userip = $_SERVER['REMOTE_ADDR'];
	
	if ($userip == "192.168.0.1") {


	 $headers .= 'From: IP Visited <mail@yourmail.com>' . "\r\n";
$to = $useremail;
 $subject = "Ip visited";
 $body = "Message";
mail($to, $subject, $body, $headers);

}
 
  • Like
Reactions: mpbiz
Can't you just pause them, schedule them for the future, or set the bids to like $0.01?


... i don't know what platform your using so just throwing that out there.

On POF when your ads get approved they are automatically set to active.
 
You can start with something as simple as this:

Code:
$userip = $_SERVER['REMOTE_ADDR'];
    
    if ($userip == "192.168.0.1") {


     $headers .= 'From: IP Visited <mail@yourmail.com>' . "\r\n";
$to = $useremail;
 $subject = "Ip visited";
 $body = "Message";
mail($to, $subject, $body, $headers);

}

+rep thanks Jose