View Full Version : Disable "Esc" Key
tenderclicks
04-16-2011, 10:43 PM
How to disable so user cant use esc/Stop butten and iframes blocker?
or to do so they just wont get credited
some user do this to prevent an ad to load for faster surfing
should be used in surf ads page to make script more advertiser friendly
Thanks
djr33
04-16-2011, 11:59 PM
You don't really change the behavior of the browser. And honestly what you're requesting sounds annoying. Browsers/ad blockers are designed to stop ads from getting in the way, so you can't do much. However, if your script responds to the escape key, then you can remove that code. So in that way you can "disable" it but only if you're already using it in a special way.
tenderclicks
04-17-2011, 12:30 AM
honestly what you're requesting sounds annoying..And honestly what you're requesting sounds annoying. Browsers/ad blockers are designed to stop ads from getting in the way
Its not annoying. ptc sites is paid to click and the user that use anything that block the ad/ autoclicker etc when surf break the terms.
They have choose click the Advertisers ads in exchange for a smaill amount of money.
So dont hack on me for somthing you dont now.
problem with ptc script is the are not enaugh advertiser friendly and is one reson why so many of them go scam.
I'm confused as to why, given the nebulous reason you've provided, it's not annoying.
with all due respect, tenderclicks, Daniel knows what he's talking about. The problem with ptc advertising that they can sometimes become user-unfriendly - for example, when an advertiser (or ad site host) tries to take away a user's control of their browser.
changing your script to ignore or respond to a keypress (like [esc]) in a particular way is fine. trying to impose that change onto other scripts (the user's adblocker) or onto their browser is very different.
Even though you may simply be concerned with your terms of service, you should be aware that taking browser control away from the user is often the first step in an attack. Endless redirects, automated downloads, pop-ups and -unders... It is not simply an annoyance, but a very real security issue. Even if you are not attacking the user, and have no malicious intentions, the user may (rightfully) feel threatened when your site tries to do such things.
Please understand that I'm not saying you're wrong and the adblocker is right: stripping out ads can be very harmful both to the advertiser and to the sites that host the ad. It is your approach that I am concerned with - taking control away from the user.
I don't have a real solution for you, though you might try to develop something that simply watches for signs of adblockers (the [esc] key, for example) and hides your normal content along with the ads. That way, you're controlling your content instead of trying to take control from the user. Perhaps you could replace your entire page with a "Please support our site by viewing our paid ads" notice. The user is not threatened, and also understands that you want the ads to be viewed.
This (http://www.plagiarismtoday.com/2010/03/08/the-ad-blockers-dilemma/) is a good article on the issue. It's worthwhile to take the time to read both side of the argument.
I hope you can find a good solution... :)
djr33
04-17-2011, 02:35 AM
Traq's suggestions are a place to start. Please be aware that my opinion may differ from yours, but there's a bigger reason to listen to what I said: browsers intentionally try to stop exactly what you are trying to do. In other words, what you want to do is not supported by browsers (and if you find a way to do it, they will probably disable it eventually).
If you need to have control of content like this, then using Flash or another plugin may be required.
And I think the key may be what traq pointed out: you can't stop the escape key, but you can react differently if it is pressed. In other words, you must approach this as adding behavior, not trying to remove it. Because most of the time, there is no reliable way to forcibly remove behavior in a browser.
tenderclicks
04-17-2011, 01:49 PM
Okey i see I understand what you mean mybe saved me from from a mistake.
Dont whont to give site security issue /user-unfriendly/:
But i still dont agrea only whanted it in one pagae not the whole site.
Why exampel
a user put up a ptc ads to a video
Total views of this video: 5000
Total clicks on ad 10000
Rsultat=A advertiser cant be sure if he'll receive all the hits he bough
Then some user block the ad to load
what you're requesting sounds annoying.
Browsers/ad blockers are designed to stop ad
I agrea on it but not on a ptc site then user have choose to click and watch the ad.
But okey I understand .
only try improve the script.
Even with a high alexa its has get harder to sale ad nead come up with new ideas the ptc world its a mess.
Meambers seams more like go to bux sites / sites that promise to mach. scam in 1 month while i have bean paying for a year.
ptc shoudl only be a extra income not a Get-Rich-Quick program.
Why exampel
a user put up a ptc ads to a video
Total views of this video: 5000
Total clicks on ad 10000
Rsultat=A advertiser cant be sure if he'll receive all the hits he bough
Then some user block the ad to load
very true. the advertiser loses their views and the host loses their income. it's not right.
in your example, however, you bring up another issue: does that video play on its own? "click-to-play" is okay in my book; but video and audio that starts automatically is a huge "no-no" - I leave, and never go back. I completely understand people's desire to block ads of that sort (as well as popups/overlays, etc.). if you're using any of those sorts of ads ("intrusive" ads, as it were), then I wouldn't blame anyone for blocking ads from your site.
Browsers/ad blockers are designed to stop ad
I agrea on it but not on a ptc site then user have choose to click and watch the ad. absolutely. I think your best option here has to do with your site's TOS. If you require users to accept the ads as a condition of viewing the page (and are very clear about this), then it would (in my mind) be acceptable to not serve content if the ads are blocked. Are you ads loaded via javascript? Perhaps you could load your content via javascript as well, after checking that the ads are actually loaded successfully. I don't know much about how ptc ads work, but that might be a good start.
tenderclicks
04-17-2011, 04:21 PM
I think your best option here has to do with your site's TOS. If you require users to accept the ads as a condition of viewing the page (and are very clear about this), then it would (in my mind) be acceptable to not serve content if the ads are blocked. Are you ads loaded via javascript? Perhaps you could load your content via javascript as well, after checking that the ads are actually loaded successfully. I don't know much about how ptc ads work, but that might be a good start.
Its sounds like a good idea. hope i get it to work:)
It will good have it so it whont show the timer before the ad is load successfully.
.
What i try to do it is how a ptc site should work
User should click the ad -watch it-after the time run out they nead click the right number then get paid a small amount.
So user that block the ad kinda ruin the meanings with the site they accepted the terms when join.
tenderclicks
04-18-2011, 09:02 PM
To hard like for me the script is to complex for newbie like me.
I dont even now if the page i whant to edit use javascript or not.
The main file layout.php does the one that change the whole site design.
But the files i nead to edit for this use php code i dont understand me on.
I only have some basic html and css skills but not mach.
Give me error when edit the file oh i how no idea what the php codes does or wheree to start.
try in google and read in forum like this.
but not mach i cant get it.
You said you have a book that can help me understand php and html better ?
Here is a full list of what i whant to do http://www.elance.com/php/bid/main/proposalList.php?jobid=23887575
I dont now where to start or where to hire a coder for the work.
I can't see your listing without opening an account on Elance; I'm just redirected to the sign-in page.
If you want help with specific items, I'm sure you could post here. You would need to share your code. If you wanted to hire a coder you could post here on DD (in the "Paid Help" forum) and someone might be able to help you out.
tenderclicks
04-19-2011, 01:09 PM
I can't see your listing without opening an account on Elance; I'm just redirected to the sign-in page.
If you want help with specific items, I'm sure you could post here. You would need to share your code. If you wanted to hire a coder you could post here on DD (in the "Paid Help" forum) and someone might be able to help you out.
Okey sorry did not now you nead to join to see it.
okey it sams be drifnt files for the srurf ads.page timer, cheat test, anti bot etc.
the timer file looks like this and i dont wont the timer to show before the ad has load
<?
if(!IN_CLICKING) exit;
if($id != -1) {
if(true) { //TODO setup admin setting for showing banner
$banner=$Db1->query_first("SELECT * FROM banners WHERE credits>=1 and active=1 order by rand() limit 1");
if(isset($banner[id])) $Db1->query("UPDATE banners SET credits=credits-1, views=views+1 WHERE id='{$banner[id]}'");
}
srand ((float) microtime() * 10000000);
$buttons = array ("1", "2", "3", "4", "5", "6", "7", "8", "9");
$rand_keys = array_rand ($buttons, 4);
$querybutton = implode(",", $rand_keys);
$Db1->query("UPDATE click_sessions SET
buttons='{$querybutton}'
WHERE
dsub='{$pretime}' and username='{$username}' and type='{$type}' ");
$buttonlist.="<div style = \"background: url(buttonlist.php?pretime={$pretime}&username={$username}&type={$type}); width: 132px; height: 29px;\">
<div class = \"highlight\" style = \"float: left; width: 33px; height: 29px;\" onClick = \"next(0);\"></div>
<div class = \"highlight\" style = \"float: left; width: 33px; height: 29px;\" onClick = \"next(1);\"></div>
<div class = \"highlight\" style = \"float: left; width: 33px; height: 29px;\" onClick = \"next(2);\"></div>
<div class = \"highlight\" style = \"float: left; width: 33px; height: 29px;\" onClick = \"next(3);\"></div>
</div>";
$t = $Db1->query_first("SELECT ".(($type=="ce" || $type=="ptre")?"":"timed,")." target FROM ".$adTables[$type]." WHERE id='{$id}'");
if($type=="ce") $timer=$settings['ce_time'];
elseif($type=="ptre") $timer=$settings['ptr_time'];
else $timer=$t['timed'];
$target=$t['target'];
}?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="content-type" content="application/xhtml+xml; charset=UTF-8" />
<title><?=$settings['site_title'];?></title>
<link href="source/clicking/timer.css?" rel="stylesheet" type="text/css" />
<script type="text/javascript">
var id="<?=$id;?>";
var url_variables="<?=$url_variables;?>";
var timer=0;
var fulltimer=<? echo ($timer); ?>;
var type="<?=$type;?>";
var key="<img src = 'buttonlist.php?pretime=<?=$pretime?>&username=<?=$username?>&type=<?=$type?>&mode=key'>";
var pretime="<?=$pretime;?>";
</script>
<script type="text/javascript" src="/source/clicking/jquery-1.3.2.js"></script>
<script src="/source/clicking/effects.core.js"></script>
<script src="/source/clicking/effects.slide.js"></script>
<script type="text/javascript" src="./source/clicking/timerb.js"></script>
<style type="text/css">
.highlight:hover
{ cursor:pointer;
background: white;
filter:alpha(opacity=50);
-moz-opacity:0.5;
-khtml-opacity: 0.5;
opacity: 0.5;}
</style>
</head>
<body>
<div id="banner">
<a href="bannerclick.php?id=<?=$banner[id];?>" target="_blank">
<img src="<?=$banner[banner];?>" alt="Banner Advertisement" /></a></div>
<div style = "padding-top: 10px; padding-left: 10px;">
<div style = "background: url('source/clicking/Timer Bg.png'); width: 200px; margin-left: 5px; height: 36px; float: left;">
<div id="bar" name = "bar" style = "background: url('source/clicking/Bar.png'); width: 0px; height: 30px; margin-left: 0px; padding-top: 6px;"></div>
</div>
</div>
<div id="timer" style="float: left;"></div>
<div id="buttons" style = "padding-top: 7px;"><?=$buttonlist;?></div>
<div id="menu" style = "padding-top: 10px;">
<li><a href="<?=$target;?>" target="_blank">New Window</a></li>
<li><a href="#" onClick="reportAd()">Report</a></li>
<li>Earned Today: $<?=$thismemberinfo['earned_today'];?></li>
<? if(!$LOGGED_IN && !$type == "ptre") { ?>
<li><a href="index.php?view=join&<? echo $url_variables; ?>"><span><span>Register</span></span></a></li>
<li><a href="index.php?view=login&<? echo $url_variables; ?>"><span><span>Login</span></span></a></li>
<? } ?>
</div>
</body>
</html>
also a timer.css dont think i nead whrite that code then it use only change the design of it. etc where the butten is placed bannr etc.
Then the file where the ad is where it load looks like.
<title>Viewing Ad @ <?=$settings['site_title'];?></title>
</head>
<frameset rows="80,*" style="border: 1px black;" noresize="noresize">
<?php if($LOGGED_IN) { ?>
<frame name="surftopframe" src="gpt.php?v=timer&user=<?=$username;?>&pretime=<?=$time;?>&id=<?=$id;?>&<?=$url_variables;?>" scrolling=no marginheight="2" marginwidth="2" noresize="noresize" >
<? } else { ?>
<frame name="surftopframe" src="gpt.php?v=outside&id=<?=$id;?>&<?=$url_variables;?>" scrolling=no marginheight="2" marginwidth="2" noresize="noresize" >
<?php } ?>
<frame name="surfmainframe" src="<?=$ad[target];?>" marginheight="0" marginwidth="0" noresize="noresize">
</frameset>
</html>
then the Viewing Ad pages is in iframe make me think its this code
Hm so am not sure wich file to edit or how to make so the content not serve bfeore ad has load.
The other things mybe better take later dont whant to take up to many items at sam time :)
tenderclicks
04-20-2011, 01:22 PM
Okey mybe better i hire a coder. Realy whanted to learn me to code.
Most i whant meto learn is how to convert psd file into html (:
Oh well for what i what to be done i nead someone that now what he is doing. hope i can find one.
http://www.dynamicdrive.com/forums/showthread.php?p=251621#post251621
Could you tell e if anything of the changes i whant to be done is annoyance or somthing ?
But please how in mind what i try to do is for the meambers best.
Ptc sites is full of chaters autoclickers etc.
And no it does not have a click to play butten on video ads.
But you cant realy blame me for that am not the script make but try improve the script.
So i how you advice in mind and will try change that to .
so you get my thanks again.
And i do not allow ads that has pop up etc
so if it should happen some one put up a ad that break that it will lead to i remove the ad and suspend the user.
I also try come up with somthing to add so meambers has somthing else to do then just click.:)
I think it may be best for you to hire someone. to be honest, a project like this is not the place to "learn." Changing an existing script (and in your case, several different scripts, of different quality, in several different coding languages, written at different times by different people who had different skill levels) can be quite difficult, even for an experienced programmer.
you have some good ideas of what you want to accomplish. Beyond simply trying to stop users from "cheating," you mention some good usability ideas (your "pause" feature, for example - if a member needs to step away for a moment, they can do so and come back to the task where they were - that's a good, useful, user-friendly idea). Unfortunately, as hard as you are working on this, there are tens of thousands of people working just as hard at figuring out how to cheat. :)
good luck!
tenderclicks
04-21-2011, 02:51 PM
Unfortunately, as hard as you are working on this, there are tens of thousands of people working just as hard at figuring out how to cheat good luck!
I now it will always be cheater how hard i even try. but it will be harder for them.
I will of course still cheak the acounts when make pay outs.
But seam be hard find a coder with experienced to work on auora script :(
Oh well thanks for whish me good luck seams i nead it realy hate when have idea and dont find any one to hire for it :D
Powered by vBulletin® Version 4.2.2 Copyright © 2021 vBulletin Solutions, Inc. All rights reserved.