- Joined
- Nov 27, 2007
- Messages
- 356
- Reaction score
- 46
Java script to disable Right Click & Copy/Paste ( Mini addition )
Add between
<head>
</head>
in your main motherboard script (index.php)
How to secure ur config.php and make it not accessible to the Internet
Just open all .php files that request config.php and add before
That mean 1 folder back = and you can go back how much folder you want and config.php will be not accessible from the Internet.
Example
Add between
<head>
</head>
in your main motherboard script (index.php)
Code:
<script type="text/javascript">
//below javascript is used for Disabling right-click on HTML page
document.oncontextmenu=new Function("return false");//Disabling right-click
//below javascript is used for Disabling text selection in web page
document.onselectstart=new Function ("return false"); //Disabling text selection in web page
if (window.sidebar){
document.onmousedown=new Function("return false");
document.onclick=new Function("return true") ;
//Disable Cut into HTML form using Javascript
document.oncut=new Function("return false");
//Disable Copy into HTML form using Javascript
document.oncopy=new Function("return false");
//Disable Paste into HTML form using Javascript
document.onpaste=new Function("return false");
}
</script>
How to secure ur config.php and make it not accessible to the Internet
Just open all .php files that request config.php and add before
Code:
/''/
Example
Attachments
You must be registered for see attachments list
Last edited: