cookies vs other ideas

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
User avatar
Vegan
Forum Regular
Posts: 574
Joined: Fri Sep 05, 2008 3:34 pm
Location: Victoria, BC
Contact:

cookies vs other ideas

Post by Vegan »

at the moment I am using a simple construct

document.cookie("adblock=true");

so what is the simplest way to detect repeat offenders, it seems that the recidivism rate is rather high

perhaps even a cookie for number of attempts etc?

this way I can change the message or take other steps such as banning the user etc
Hardcore Games™ Legendary is the Only Way to Play™
My site is powered by LAMP
User avatar
Celauran
Moderator
Posts: 6427
Joined: Tue Nov 09, 2010 2:39 pm
Location: Montreal, Canada

Re: cookies vs other ideas

Post by Celauran »

Cookies are stored on the user's machine. Seems kinda counter productive. They can just erase the cookie (or not allow it in the first place).
User avatar
Vegan
Forum Regular
Posts: 574
Joined: Fri Sep 05, 2008 3:34 pm
Location: Victoria, BC
Contact:

Re: cookies vs other ideas

Post by Vegan »

given IP addresses are not constant....

I was hoping the user was a moron and that they do not realize the cookies are present

so is there an easy conditional to check the cookie and dump the blocker onto some blackhole malware site
Hardcore Games™ Legendary is the Only Way to Play™
My site is powered by LAMP
User avatar
Celauran
Moderator
Posts: 6427
Joined: Tue Nov 09, 2010 2:39 pm
Location: Montreal, Canada

Re: cookies vs other ideas

Post by Celauran »

So savvy enough to know how to bypass your ads, but so stupid they're not familiar with cookies? Seems pretty unlikely.
Vegan wrote:so is there an easy conditional to check the cookie and dump the blocker onto some blackhole malware site
I'm certainly not going to help you do anything so horrible. If you don't want them visiting your site, fine. The above is unacceptable.
User avatar
Vegan
Forum Regular
Posts: 574
Joined: Fri Sep 05, 2008 3:34 pm
Location: Victoria, BC
Contact:

Re: cookies vs other ideas

Post by Vegan »

the idea i had was to use

var busted = document.cookie("adblock")
if (busted) href = "https://www.chillingeffects.org/";

this is the the place to go for copyright and trademark
Hardcore Games™ Legendary is the Only Way to Play™
My site is powered by LAMP
Post Reply