Page 1 of 2 12 LastLast
Results 1 to 10 of 15

Thread: Disable "Esc" Key

  1. #1
    Join Date
    Nov 2010
    Posts
    17
    Thanks
    5
    Thanked 0 Times in 0 Posts

    Default Disable "Esc" Key

    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
    Last edited by tenderclicks; 04-16-2011 at 11:26 PM.

  2. #2
    Join Date
    Mar 2006
    Location
    Illinois, USA
    Posts
    12,164
    Thanks
    265
    Thanked 690 Times in 678 Posts

    Default

    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.
    Daniel - Freelance Web Design | <?php?> | <html>| español | Deutsch | italiano | português | català | un peu de français | some knowledge of several other languages: I can sometimes help translate here on DD | Linguistics Forum

  3. #3
    Join Date
    Nov 2010
    Posts
    17
    Thanks
    5
    Thanked 0 Times in 0 Posts

    Default

    Quote Originally Posted by djr33 View Post
    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.

  4. #4
    Join Date
    Jan 2008
    Posts
    4,168
    Thanks
    28
    Thanked 628 Times in 624 Posts
    Blog Entries
    1

    Default

    I'm confused as to why, given the nebulous reason you've provided, it's not annoying.
    Jeremy | jfein.net

  5. #5
    Join Date
    Apr 2008
    Location
    So.Cal
    Posts
    3,643
    Thanks
    63
    Thanked 516 Times in 502 Posts
    Blog Entries
    5

    Default

    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 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...
    Last edited by traq; 04-17-2011 at 01:46 AM.

  6. #6
    Join Date
    Mar 2006
    Location
    Illinois, USA
    Posts
    12,164
    Thanks
    265
    Thanked 690 Times in 678 Posts

    Default

    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.
    Daniel - Freelance Web Design | <?php?> | <html>| español | Deutsch | italiano | português | català | un peu de français | some knowledge of several other languages: I can sometimes help translate here on DD | Linguistics Forum

  7. #7
    Join Date
    Nov 2010
    Posts
    17
    Thanks
    5
    Thanked 0 Times in 0 Posts

    Default

    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.
    Last edited by tenderclicks; 04-17-2011 at 04:02 PM.

  8. #8
    Join Date
    Apr 2008
    Location
    So.Cal
    Posts
    3,643
    Thanks
    63
    Thanked 516 Times in 502 Posts
    Blog Entries
    5

    Default

    Quote Originally Posted by tenderclicks View Post
    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.
    Quote Originally Posted by tenderclicks View Post
    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.

  9. #9
    Join Date
    Nov 2010
    Posts
    17
    Thanks
    5
    Thanked 0 Times in 0 Posts

    Default

    Quote Originally Posted by traq View Post
    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.
    Last edited by tenderclicks; 04-17-2011 at 10:23 PM.

  10. #10
    Join Date
    Nov 2010
    Posts
    17
    Thanks
    5
    Thanked 0 Times in 0 Posts

    Default

    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/p...jobid=23887575

    I dont now where to start or where to hire a coder for the work.
    Last edited by tenderclicks; 04-18-2011 at 09:08 PM.

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •