FRIHOSTFORUMSFAQTOSBLOGSDIRECTORY
You are invited to Log in or Register a Frihost Account!

Want Help from Experts in HTML

 


nivinjoy
Hi friends,
1) I have a forum hosted for free on a free forum hosting website.I have included many images like funny pics,amazing pics and many personal pictures.I dont want anyone to download those stuffs and i dont want anyone to copy anythings from my forum.So is it possible to incorporate a disable right click on image and on text in every pages of the forum.I was successful in making so on the first page of the forum.But it is not coming on other pages..So is there any way to do so...Please tell me how to do so...
2) Or if i host a forum on the direct domain provided by Frihost will it be possible to incorporate these stuffs on every pages of the forum...

3) And is there any way to prevent cut/copy of text from a page in the website or forum...Is there any script for that...

4)Is there anyway to prevent viewing of the HTML codes(using right click>View Source or by clickin on View>Source) used to create the webpages included onto a website...
If there are anyways to do anyone of the above things please help me to do so...
Emmer-Compascuum
1) You can't on free forum hosts.
2) Now you can. Where exactly might differ for each forum, but it's most likely that you'll have to put it in the header include file.
3) I've found this script, which I tested in both IE and FF:
Code:
<script language="JavaScript" type="text/javascript">
<!--

//Disable right click script III- By Renigade (renigade@mediaone.net)
//For full source code, visit http://www.dynamicdrive.com

var message="";
///////////////////////////////////
function clickIE() {if (document.all) {(message);return false;}}
function clickNS(e) {if
(document.layers||(document.getElementById&&!document.all)) {
if (e.which==2||e.which==3) {(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>

It won't be very effective though. It'll just annoy regular users and users who really want to copy stuff can just take a look in the source code.

4) No, you can't.
imagefree
well i dont know whether the above code works or not but i can tell you that you cant do this on a free forum because there you dont have access to source code.

Make free forum on frihost, install the forum up there,install the forum on your personal computer also and try to alter the php code. (infact in templates folder you will find the solution).
Fuzzy-Duck
Regarding point (3) unfortunately the code Emmer-Compascuum posted above will not give particularly effective results in IE, and certainly not in Mozilla/Firefox... Even if it does succeed in blocking a simple right-click, pressing and holding the left mouse button while clicking the right one will work in most cases, it's just the way it is!

However, I agree completely when he says:

Emmer-Compascuum wrote:

It won't be very effective though. It'll just annoy regular users and users who really want to copy stuff can just take a look in the source code.


I remember years and years ago when every other site out there had some form of JavaScript based click-blocking code on it, and boy was it annoying! It was ineffective then and it's even more so now, especially as the use of the contect menu has become more prevalent.

For much the same reason blocking it is bad on accessibility grounds too, and as noted above anybody with half a minute to spare and google at their fingertips will find as way round to copy or download any image or source code. Whether you agree with it or not, you can't stop anything you put on the web being looked at and/or saved! And that's just the way it has to be - sorry!

Cheers,
fuzzy
Reply to topic    Frihost Forum Index -> Scripting -> Html, CSS and Javascript

FRIHOST HOME | FAQ | TOS | ABOUT US | CONTACT US | SITE MAP
© 2005-2007 Frihost, forums powered by phpBB.