Website Translations
Search Today's Posts AGD Members Register Now (Free)
Recent Affiliate Payments
Intertops Sep 2nd
CWC Affiliates (Club World) Sep 2nd
Slotocash Affiliates Sep 1st
AffiliateWIDE Sep 1st
Poker Host Sep 1st
PDC Affiliates Sep 1st
BetPhoenix Affiliates Sep 1st
Vegas Affiliates Aug 28th
Enter Your Recent Payments
Latest Posts
Thread    Date, Time  Posted By  Replies  Views   Forum
Old "For Love and Money" Video Slot Revamped &...    09-02, 23:14  SuperiorShare  2  46   Superiorshare
Old This Is Vegas Not Paying Player 80K Win?    09-02, 22:42  bb1webs  21  762   400 Affiliates
Old Slots Jungle Denied my $3,000 withdrawal!!    09-02, 22:31  bonustreak  19  420   Affactive
Old Just starting out    09-02, 22:21  Rhondagrace  6  138   New Casino...
Old $500 Free Word Contest by Bet Phoenix Casino...    09-02, 22:18  Rhondagrace  112  949   Free For All -...
Old Should Gambling Companies Tell a Player...    09-02, 21:24  Rhondagrace  3  58   AGD RoundTable...
Old Question to Affiliates    09-02, 20:53  slotplayer  7  200   AGD RoundTable...
Old no payment due to min referral clause betway    09-02, 15:15  bb1webs  12  504   AGD RoundTable...
Old Affiliate Payments - September 2010    09-02, 14:00  AffiliatePaym...  6  175   Affiliate...
Old 10 permanent links for sale    09-02, 10:41  free4gambling  6  102   Link Sales and...

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: 839

 
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: 3,292
Thanks: 994
Thanked 1,457 Times in 759 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: 3,292
Thanks: 994
Thanked 1,457 Times in 759 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: 3,292
Thanks: 994
Thanked 1,457 Times in 759 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,508
Thanks: 990
Thanked 691 Times in 364 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 12:15 AM.
Powered by vBulletin® Version 3.8.6
Copyright ©2000 - 2010, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.3.0
vB.Sponsors


no new posts