1. Advertising
    y u no do it?

    Advertising (learn more)

    Advertise virtually anything here, with CPM banner ads, CPM email ads and CPC contextual links. You can target relevant areas of the site and show ads based on geographical location of the user if you wish.

    Starts at just $1 per CPM or $0.10 per CPC.

PHP Scripts request

Discussion in 'PHP' started by Ticcaso, Apr 21, 2006.

  1. #1
    yo guyz can i have some help?
    i need 2 php scripts:
    1. one that disables right click
    2. second that when yuh open the source it shows NOTHING or something that i want
    SEMrush
     
    Ticcaso, Apr 21, 2006 IP
    SEMrush
  2. mad4

    mad4 Peon

    Messages:
    6,989
    Likes Received:
    493
    Best Answers:
    0
    Trophy Points:
    0
    #2
    Check out this script but you might also wish to read this

    This script will encrypt your source code.
     
    mad4, Apr 21, 2006 IP
  3. Ticcaso

    Ticcaso Peon

    Messages:
    71
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    0
    #3
    i want to DISABLE it like on www(dot)thecrims(dot)com
    look there
    the RightClick script isnt bad but its not what i want
    the encrypting is cool, but it doesnt work on my php script... i want to have a NO SOURCE script
     
    Ticcaso, Apr 21, 2006 IP
  4. sarahk

    sarahk iTamer Staff

    Messages:
    25,266
    Likes Received:
    3,442
    Best Answers:
    100
    Trophy Points:
    665
    #4
    sarahk, Apr 21, 2006 IP
  5. mad4

    mad4 Peon

    Messages:
    6,989
    Likes Received:
    493
    Best Answers:
    0
    Trophy Points:
    0
    #5
    Why not just look at their source code and copy the script they use? (Hint: Click View > Source on your browser menu if you can't right click).

    You can't have a no source script. The browser needs to see the source code to be able to show the web page.

    Whatever methods you use to hide your source code it can still be found.
     
    mad4, Apr 21, 2006 IP
  6. Ticcaso

    Ticcaso Peon

    Messages:
    71
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    0
    #6
    LOL i know how 2 look at sources ^^
    there IS a script i saw it at a computer specialist that now moved to canada
    his script was viewable on the server Pc only but on web when yuh go to view source yuh see:
    "Get your own script"
    that is the source on web
     
    Ticcaso, Apr 21, 2006 IP
  7. Ticcaso

    Ticcaso Peon

    Messages:
    71
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    0
    #7
    all i have buttons that jump in a new window/tab automaticly so no right click needed however by a script the browser wont show source
    i know they use frames LoL!
     
    Ticcaso, Apr 21, 2006 IP
  8. Ticcaso

    Ticcaso Peon

    Messages:
    71
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    0
    #8
    is there a PHP script encripter?
     
    Ticcaso, Apr 21, 2006 IP
  9. mad4

    mad4 Peon

    Messages:
    6,989
    Likes Received:
    493
    Best Answers:
    0
    Trophy Points:
    0
  10. TwistMyArm

    TwistMyArm Peon

    Messages:
    931
    Likes Received:
    44
    Best Answers:
    0
    Trophy Points:
    0
    #10
    Ticasso: it's impossible to hide the HTML script. That's just life. Some sites place an enormous amount of whitespace all around the HTML to make the 'view source' page look blank, but that's about all you can do.

    No offence, but I'm getting the funny feeling that you're thinking that the PHP is sent to the client: this isn't the case. The reason I say this is that there is no such thing as a PHP script that disables right click, as the PHP is run on the server... what you are after is Javascript to do this (that may just be served up by a PHP script, but that is inconsequential).

    Also, unless you plan on selling the PHP script itself, there is no point in encrypting the code as a 'normally' set up web server doesn't allow access to the PHP code anyway...
     
    TwistMyArm, Apr 21, 2006 IP
  11. drewbe121212

    drewbe121212 Well-Known Member

    Messages:
    733
    Likes Received:
    20
    Best Answers:
    0
    Trophy Points:
    125
    #11
    I never understood the reasoning for disabling the view source or the right click function. disabling the right click gets rid of a lot of useful things that are built into the options menu. If a site has that disabled, I stop using it immediately.

    As for the view_source part, why? You afraid someone is going to steal your content? I can get your entire page just the same by opening any of the files through a script.
     
    drewbe121212, Apr 21, 2006 IP
  12. Ticcaso

    Ticcaso Peon

    Messages:
    71
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    0
    #12
    i dont know man but i want the www(dot)thecrims(dot)com disable mouse script
    and there REALLY is a script that hides source
     
    Ticcaso, Apr 21, 2006 IP
  13. TwistMyArm

    TwistMyArm Peon

    Messages:
    931
    Likes Received:
    44
    Best Answers:
    0
    Trophy Points:
    0
    #13
    OK, so the thing is, that site you're talking about isn't that effective in blocking right clicks... my Firefox is unaffected by it, for example. Now I don't know if it's because I explicitly stopped it (from the Javascript options) but you have to accept the basic rule of web pages: once it's on the client, you can't enforce anything.

    Like others have said, you shouldn't have anything 'secret' in your HTML source anyway!

    At the end of the day the HTML source has to be sent so that the browser can render it. Even if there was a way to stop the browser's 'view source' from showing anything (maybe that's an IE 'feature') the point is this: the browser still had the HTML and so I can get the HTML by dozens of different ways! wget, telnet, lynx... three different ways off the top of my head.

    The biggest question you need to ask yourself (and answer for us if we are going to be able to help) is this: "what the hell am I trying to protect and if I'm so keen to protect it, why am I sending it to client in the first place?".

    That's basically my take on it, anyway...
     
    TwistMyArm, Apr 21, 2006 IP
  14. Ticcaso

    Ticcaso Peon

    Messages:
    71
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    0
    #14
    yes and someone WILL steal it ;)
     
    Ticcaso, Apr 21, 2006 IP
  15. Ticcaso

    Ticcaso Peon

    Messages:
    71
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    0
    #15
    My PHP Script is secret man and i have already protected it in a lot of ways (i made 3 framed index's each haveing another 10 frames [<FRAMESET ROWS="0,0,0,0,*,0,0,0,0,0" BORDER="0" FRAMEBORDER="0">])
    xD and each one has funny name and i encrypted it xD and i still want to hide source and disable rightclick xD
     
    Ticcaso, Apr 21, 2006 IP
  16. mad4

    mad4 Peon

    Messages:
    6,989
    Likes Received:
    493
    Best Answers:
    0
    Trophy Points:
    0
    #16
    Your php script is not being sent to the client, nobody can steal your php script. The html output is being sent to the client but so what if they steal a bit of html code? :confused:

    A few people who know their stuff have said you can't, don't need to and should not do what you are trying to do so why do you still try and do it?
     
    mad4, Apr 21, 2006 IP
  17. TwistMyArm

    TwistMyArm Peon

    Messages:
    931
    Likes Received:
    44
    Best Answers:
    0
    Trophy Points:
    0
    #17
    Exactly... your PHP code is not going to get stolen, no matter what the user can do in the browser.

    You also have to remember that there's a lot of people out there that are going to react with: "wow... he's really gone to a LOT of effort to stop me seeing that HTML... I wonder exactly what is in that??" then go to all sorts of lengths to find it out.

    There is a bit of a diminishing return on investment for HTML hiding, but at the end there is also the uptick of people that will want to get to it, if you get my drift!
     
    TwistMyArm, Apr 21, 2006 IP
  18. drewbe121212

    drewbe121212 Well-Known Member

    Messages:
    733
    Likes Received:
    20
    Best Answers:
    0
    Trophy Points:
    125
    #18
    Yeah, but what I am saying is that it takes (atleast with PHP) 2 lines of code to fully copy a website; source hidden or not.

    Open and save, simple as that. Also copied sites never make it very far. :) Without original content, it is really a doomed fight from the beginning. :)
     
    drewbe121212, Apr 21, 2006 IP
  19. sarahk

    sarahk iTamer Staff

    Messages:
    25,266
    Likes Received:
    3,442
    Best Answers:
    100
    Trophy Points:
    665
    #19
    But only the static part of it.

    Consider this page: http://5nz.com/pr.php

    Apart from the fact that I've posted the script elsewhere here at DigitalPoint if you copied that page you still wouldn't be able to get the PHP that does the page rank check. You'd have the generated page (which is actually a collection of php scripts), the css, the javascript, but you'd click check page and you'd go nowhere.

    BTW: I just turned off javascript on my Firefox browser and thecrims.com source was fully displayed. Had you tried that?
     
    sarahk, Apr 21, 2006 IP
  20. Psychotomus

    Psychotomus Guest

    Messages:
    427
    Likes Received:
    8
    Best Answers:
    0
    Trophy Points:
    0
    #20
    I can just download the pages using a PC program to view the source. or even use file save as then view the source that way.
     
    Psychotomus, Apr 21, 2006 IP