Mysidia Adoptables Support Forum  

Home Community Mys-Script Creative Off-Topic
Go Back   Mysidia Adoptables Support Forum > Mysidia Adoptables > Questions and Supports

Notices

 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
  #5  
Old 11-27-2011, 10:38 PM
Hall of Famer's Avatar
Hall of Famer Hall of Famer is offline
Administrator, Lead Coder
 
Join Date: Dec 2008
Location: South Brunswick
Posts: 4,448
Gender: Male
Credits: 660,207
Hall of Famer is on a distinguished road
Default

Quote:
Originally Posted by Csar View Post
Well, you wouldn't need to "block" the users but simply not count if they're eing referred, If I'm right you could use something like this:

PHP Code:
<?php
    $blacklist 
Aray(/*Terms that identify banned sites for example:*/ 'yarolds''google');
    
$click_allowed true;
    foreach (
$blacklist as $disallowedpage
        if (
strpos($_SERVER['HTTP_REFERRER'], $disallowedpage) !== false$click_allowed=false;
?>
Later you can just check against your prohibited pages, something like this
PHP Code:
<?php
    
if ($click_allowed) echo 'This is a normal user';
    else echo 
'You should not use any click services';
?>
If you would like to limit the number of clicks everyday you would need to add an extra table to your MySQL.

Hope it helped

C#
This looks cool, but seems that you made a typo here:

PHP Code:
    $blacklist Aray(/*Terms that identify banned sites for example:*/ 'yarolds''google'); 
It should be this if I am correct:

PHP Code:
    $blacklist = Array(/*Terms that identify banned sites for example:*/ 'yarolds''google'); 
But anyway I do not recommend the approach to block incoming traffic, since even without Yarold they can still find other ways to level up quickly. A better approach is to write a code that count how many clicks this very adoptable has received during the day and generates an error message if the number is above 10.
__________________


Mysidia Adoptables, a free and ever-improving script for aspiring adoptables/pets site.
Reply With Quote
 

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 Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
how to increase amount of clicks per day... Mortain Questions and Supports 6 12-02-2015 05:31 AM
Limit clicks/day to 10 sensacion Questions and Supports 1 07-02-2011 05:15 AM
amount of users currently online Tony Suggestions and Feature Requests 1 02-06-2011 10:20 PM
Limit clicks/day to 10, for each pet? Quillink Questions and Supports 9 02-08-2010 02:35 PM
Is there a way to limit the amount of adoptables a person can adopt? crydrk Suggestions and Feature Requests 2 08-01-2009 04:34 PM


All times are GMT -5. The time now is 04:26 AM.

Currently Active Users: 4150 (0 members and 4150 guests)
Threads: 4,081, Posts: 32,032, Members: 2,016
Welcome to our newest members, jolob.
BETA





What's New?

What's Hot?

What's Popular?


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2025, vBulletin Solutions Inc.
vBCommerce I v2.0.0 Gold ©2010, PixelFX Studios
vBCredits I v2.0.0 Gold ©2010, PixelFX Studios
Emoticons by darkmoon3636