Search Today's Posts AGD Members Register Now (Free)
Recent Affiliate Payments
Vegas Sky Casino Affiliates Mar 12th
Unibet Affiliates Mar 12th
Playshare Affiliates Mar 12th
Wagershare Mar 12th
Star Partner Mar 11th
Red Returns Mar 11th
Casino Coins Mar 10th
Red Returns Mar 10th
Enter Your Recent Payments
Latest Posts
Thread    Date, Time  Posted By  Replies  Views   Forum
Old Another MG USA popup    03-14, 08:19  Pokerkeep  3  73   Free For All -...
Old VC Affiliates - Predatory Terms?    03-14, 08:08  Pokerkeep  19  308   Free For All -...
Old Rival Programs - Progressive Good/Bad List    03-14, 07:49  Guard Dog  65  1632   AGD RoundTable...
Old How much $$ do YOU make?    03-14, 06:23  nicole  57  4767   New Casino...
Old AGD Stimulus Package    03-14, 05:39  nicole  23  1504   AGD Mentor Program
Old Tradtion Casino To Uses Predatory Tatics!!!    03-14, 05:30  Igaming.pro  15  446   Free For All -...
Old Everleaf Poker Skin Sells Sex!!    03-14, 01:17  SlotMonster  11  184   Free For All -...
Old Casino Affiliate Share    03-13, 19:49  WCD Admin  6  224   Free For All -...
Old Adrian sent you an email!!    03-12, 21:42  GFPC  2  99   Live Casino...
Old Welcome Go Wild Affiliates!    03-12, 20:03  GFPC  12  349   Go Wild Affiliates

Go Back   Affiliate Guard Dog > Casino Affiliate Forums > Free For All - General Casino Affiliate Area

Reply

OMG - Spam on my new site - Free For All - General Casino Affiliate Area
Discussion Started on: May 21, 2008 Number of replies: 6 Number of views: 725

 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 05-21-2008
Affiliate Guard Dog Member
 
Join Date: May 2008
Posts: 45
Thanks: 0
Thanked 0 Times in 0 Posts
OMG - Spam on my new site
My is not even index by google and I got so much spam already. I check my comment table and I saw that their ip_numbers (not ip_address) are 0s (zero).

I used ip2long to convert the ip_address to ip_number {ip2long($_SERVER['REMOTE_ADDR'])}.

How come their IPs are 0s?



Code:
Hi everyone. Great site. Hold on.
cosmetics cosmetics cosmetics cosmetics cosmetics cosmetics cosmetics cosmetics 
cPanel®cPanel®cPanel®cPanel®cPanel®cPanel®cPanel®cPanel®cPanel®cPanel®

Last edited by Danny; 05-21-2008 at 05:01 AM..
replied at: 04:58 AM on 05-21-2008
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2 (permalink)  
Old 05-21-2008
Guard Dog's Avatar
Guard Dog
 
Join Date: Dec 2006
Location: Wisconsin
Posts: 2,766
Thanks: 847
Thanked 1,063 Times in 571 Posts
Blog Entries: 1
Send a message via Skype™ to Guard Dog
Default

I am not sure why you would want to convert the IP address to a long data type? Wouldn't you want to see it as xxx.xxx.xxx.xxx?

Regardless, the following should work


PHP Code:
$referrer_ip getenv(REMOTE_ADDR); 
$ip_address =ip2long($ip); 
Or, if you are on versions of php earlier than 5.0:

PHP Code:
$remote_ip getenv(REMOTE_ADDR); 
$ip_extract explode (".",$remote_ip);
$code=($ip_extract[0] * 16777216) + ($ip_extract[1] * 65536) + ($ip_extract[2] * 256) + ($ip_extract[3]); 

If you want to see it as xxx.xxx.xxx.xxx, then:

PHP Code:
$referrer_ip getenv(REMOTE_ADDR); 

If you want to grab each octet of the IP address:

PHP Code:
 $remote_ip getenv(REMOTE_ADDR); 
$ip_extract explode (".",$remote_ip);


$octet1 $ip_extract[0];
$octet2 $ip_extract[2];
$octet3 $ip_extract[3];
$octet4 $ip_extract[4]; 

I hope that helps
_______________________________________ _______________________________________
replied at: 06:16 AM on 05-21-2008
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #3 (permalink)  
Old 05-21-2008
Affiliate Guard Dog Member
 
Join Date: May 2008
Posts: 45
Thanks: 0
Thanked 0 Times in 0 Posts
Default

The reason I am using ip2long is because I implemented maxmind ip-country database on my system.

maxmind using ip number instead of ip address. So I like to use ip number as well for the ease and robustness of comparison.

There shouldn't be any problem as my server uses the latest version of PHP. But, I'll try your method.

I also need to implement captcha to minimize the spamming.
replied at: 08:25 AM on 05-21-2008
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #4 (permalink)  
Old 05-21-2008
Guard Dog's Avatar
Guard Dog
 
Join Date: Dec 2006
Location: Wisconsin
Posts: 2,766
Thanks: 847
Thanked 1,063 Times in 571 Posts
Blog Entries: 1
Send a message via Skype™ to Guard Dog
Default

Quote:
Originally Posted by Danny View Post
The reason I am using ip2long is because I implemented maxmind ip-country database on my system.

maxmind using ip number instead of ip address. So I like to use ip number as well for the ease and robustness of comparison.

There shouldn't be any problem as my server uses the latest version of PHP. But, I'll try your method.

I also need to implement captcha to minimize the spamming.

I don't know why it wouldn't work, then... I would do an echo of the 'REMOTE_ADDR', then, to see if the problem starts there. There is a breakdown somewhere and it is either in the function or in the IP address itself.
_______________________________________ _______________________________________
replied at: 08:56 AM on 05-21-2008
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #5 (permalink)  
Old 05-21-2008
Affiliate Guard Dog Member
 
Join Date: May 2008
Posts: 45
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Look, my ip address/number is shown correctly. I even try different IPs. I don't know why their ips doesn't shown!
replied at: 12:01 PM on 05-21-2008
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #6 (permalink)  
Old 05-21-2008
Guard Dog's Avatar
Guard Dog
 
Join Date: Dec 2006
Location: Wisconsin
Posts: 2,766
Thanks: 847
Thanked 1,063 Times in 571 Posts
Blog Entries: 1
Send a message via Skype™ to Guard Dog
Default

Here's a little function I found that might help you out:

PHP Code:
function GetIP()
{
   if (
getenv("HTTP_CLIENT_IP") && strcasecmp(getenv("HTTP_CLIENT_IP"), "unknown"))
           
$ip getenv("HTTP_CLIENT_IP");
       else if (
getenv("HTTP_X_FORWARDED_FOR") && strcasecmp(getenv("HTTP_X_FORWARDED_FOR"), "unknown"))
           
$ip getenv("HTTP_X_FORWARDED_FOR");
       else if (
getenv("REMOTE_ADDR") && strcasecmp(getenv("REMOTE_ADDR"), "unknown"))
           
$ip getenv("REMOTE_ADDR");
else if (isset(
$_SERVER['REMOTE_ADDR']) && $_SERVER['REMOTE_ADDR'] && strcasecmp($_SERVER['REMOTE_ADDR'], "unknown"))
           
$ip $_SERVER['REMOTE_ADDR'];
       else
           
$ip "unknown";
   return(
$ip);

Now use the GetIP() function to return the IP and then convert it to a long data type.
_______________________________________ _______________________________________
replied at: 01:00 PM on 05-21-2008
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #7 (permalink)  
Old 05-22-2008
bonustreak's Avatar
Super Moderator
 
Join Date: Dec 2006
Posts: 1,166
Thanks: 700
Thanked 503 Times in 266 Posts
Default

Nice and thanks!!
_______________________________________ _______________________________________
replied at: 08:42 PM on 05-22-2008
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is On
Trackbacks are On
Pingbacks are On
Refbacks are On









      AGD Icon Legend

  Terms Approved
Terms and Conditions Certified by AGD as 'Affiliate-Friendly'.
  Terms are Predatory
Terms and Conditions are considered 'Predatory' (Not good for Affiliates).
  Terms have warnings
Terms and Conditions are Certified but have a warning on one of the terms.
  Terms not verified
Terms and Conditions are have not yet been reviewed.
  New Affiliate Program
Warning - New Affiliate Program. No proven track record.
  Affiliate Program Closed
Program is closed / out of business.
  Casinos are Bundled
Program Bundles Earnings on their casnio properties.
  Negative Carryover
Program Carrys Over Negative Earnings.
  Pays On Time
Program pays their affiliates consistently on time.
  Pays Late
Program pays late or irregularly



All times are GMT -5. The time now is 08:52 AM.
Powered by vBulletin® Version 3.8.3
Copyright ©2000 - 2010, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.3.0
vB.Sponsors


no new posts