PhP Security scripts

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Vince7
    New Member
    • Jun 2004
    • 3

    PhP Security scripts

    Does anyone know where I can get php security scripts. One to stop the right click mouse button. One to not allow the internet explorer's tool panel to take pictures from your pages. Also a hotlink stopper script for html and php.
  • cirisme
    Senior Member
    • Feb 2003
    • 1310
    • 3.0.7

    #2
    None of these require PHP.

    The last one can be done with Apache:

    TheologyWeb. We debate theology. srsly.

    Comment

    • Floris
      Senior Member
      • Dec 2001
      • 37767

      #3
      You can't prevent end-users to right click, save a file as, or make a complete screenshot.
      You can do a little using javascript, and use php to prevent hot linking, but javascript is clientside scripting and therefor can be bypassed.

      Comment

      • Vince7
        New Member
        • Jun 2004
        • 3

        #4
        Thank you very much for your help!

        Vince

        Comment

        • Vince7
          New Member
          • Jun 2004
          • 3

          #5
          Well I guess I should have asked the follow up question. Where would these scripts be placed? Index.php file? Or any php page?

          I understand where the script goes in the html page source, but not in the php source page:

          <HEAD>
          <META HTTP-EQUIV="imagetoolbar" CONTENT="no">
          <TITLE></TITLE>
          <SCRIPT language="JavaScript">
          <!--
          var message="Right click not available.";
          ///////////////////////////////////
          function clickIE() {if (document.all) {alert(message);return false;}}
          function clickNS(e) {if
          (document.layers||(document.getElementById&&!document.all)) {
          if (e.which==2||e.which==3) {alert(message);return false;}}}
          if (document.layers)
          {document.captureEvents(Event.MOUSEDOWN);document.onmousedown=clickNS;}
          else{document.onmouseup=clickNS;document.oncontextmenu=clickIE;}
          document.oncontextmenu=new Function("return false")
          // -->
          </SCRIPT>
          </HEAD>

          Comment

          • Floris
            Senior Member
            • Dec 2001
            • 37767

            #6
            What is there in between the header tags, goes in your pages, in between the header tags.

            If your php files use templates, open the template that makes up the header.

            Comment

            widgetinstance 262 (Related Topics) skipped due to lack of content & hide_module_if_empty option.
            Working...