How to secure ur config.php + small java script for addition security :)
Java script to disable Right Click & Copy/Paste ( Mini addition )
Add between
<head>
</head>
in your main motherboard script :D (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
That mean 1 folder back :P = and you can go back how much folder you want :) and config.php will be not accessible from the Internet.
Example
http://i.imgur.com/mA522EY.png
http://i.imgur.com/k2Dzb1A.png
Re: How to secure ur config.php + small java script for addition security :)
You really deserve my Like !
Re: How to secure ur config.php + small java script for addition security :)
Since javascript is mostly just client - side language (except node.js & other javascript server frameworks), this really wont help in securing the scripts. You should be doing routing in php to keep your files hidden from public completely.
Re: How to secure ur config.php + small java script for addition security :)
Re: How to secure ur config.php + small java script for addition security :)
First of all, Javascript have to include in bottom on page, never in head.
Second one, wtf securing with javascript? Please guys cut your ears off.
Did you ever heard about .htaccess? Gosh.
Guys search on google .htaccess modrewrite rules and your 'security' problem is gone.
All silkroad-frameworks i ever seen in this forum are bullshit and i just saw really bad programmers around here.
please dont make your self a pro if you arent one.
Re: How to secure ur config.php + small java script for addition security :)
lol that does not help either, if u think about it more :))