Search Today's Posts AGD Members Register Now (Free)
Recent Affiliate Payments
Brightshare 2008-11-19
Casino Coins 2008-11-17
Gambling Wages 2008-11-14
Wagershare 2008-11-14
Pantasia Affiliates 2008-11-13
Gnuf Partner 2008-11-13
Latest Posts
Thread    Date, Time  Posted By  Replies  Views   Forum
Old Brightshare changes earnings...  »  11-20, 05:20  CEO2008GAME  1  143   Casino Industry...
Old BetUS Partners Terms Change -...  »  11-20, 05:19  CEO2008GAME  2  163   Casino Industry...
Old Wordpress - Update your blogs...  »  11-20, 05:18  CEO2008GAME  3  244   Spamming and...
Old Will you trust CAP's audits?  »  11-20, 01:53  bb1webs  31  349   Free For All -...
Old Suggestion for AFG.  »  11-19, 21:30  Guard Dog  1  20   Free For All -...
Old AGD forms alliance with GPWA,...  »  11-19, 21:20  WCD Admin  6  60   Casino Industry...

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

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 05-21-2008, 05:58 AM
Affiliate Guard Dog Member
 
Join Date: May 2008
Posts: 45
Thanks: 3
Thanked 3 Times in 2 Posts
Default 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 06:01 AM.
Reply With Quote
  #2 (permalink)  
Old 05-21-2008, 07:16 AM
Guard Dog's Avatar
Guard Dog
 
Join Date: Dec 2006
Location: Wisconsin
Posts: 842
Thanks: 160
Thanked 87 Times in 67 Posts
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
__________________
Guard Dog
KNOW your affiliate program
Reply With Quote
  #3 (permalink)  
Old 05-21-2008, 09:25 AM
Affiliate Guard Dog Member
 
Join Date: May 2008
Posts: 45
Thanks: 3
Thanked 3 Times in 2 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.
Reply With Quote
  #4 (permalink)  
Old 05-21-2008, 09:56 AM
Guard Dog's Avatar
Guard Dog
 
Join Date: Dec 2006
Location: Wisconsin
Posts: 842
Thanks: 160
Thanked 87 Times in 67 Posts
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.
__________________
Guard Dog
KNOW your affiliate program
Reply With Quote
  #5 (permalink)  
Old 05-21-2008, 01:01 PM
Affiliate Guard Dog Member
 
Join Date: May 2008
Posts: 45
Thanks: 3
Thanked 3 Times in 2 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!
Reply With Quote
  #6 (permalink)  
Old 05-21-2008, 02:00 PM
Guard Dog's Avatar
Guard Dog
 
Join Date: Dec 2006
Location: Wisconsin
Posts: 842
Thanks: 160
Thanked 87 Times in 67 Posts
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.
__________________
Guard Dog
KNOW your affiliate program
Reply With Quote
The Following 2 Users Say Thank You to Guard Dog For This Useful Post:
bonustreak (05-22-2008), Danny (05-22-2008)
  #7 (permalink)  
Old 05-22-2008, 09:42 PM
bonustreak's Avatar
Super Moderator
 
Join Date: Dec 2006
Posts: 270
Thanks: 34
Thanked 34 Times in 30 Posts
Default

Nice and thanks!!
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 Partners

diamond partner

iGaming Profits


To partner with AGD, contact
us at: diamond partner



      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


iGaming Profits. Multi-currency Rival casino. 30% Revshare, up to $300 CPA


All times are GMT -5. The time now is 05:38 AM.
Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.1.0
vB.Sponsors


HOME
FORUMS
CASINO AFFILIATE PROGRAMS
PROGRAM REVIEWS
TERMS ALERTS