|
| |
CSS: Web Subdirectories/File "No Right Click" Protection
View related threads:
(in this forum
| in all forums)
|
Logged in as: Guest
|
|
|
Soniclight
Posts: 89 Joined: 7/23/2003 Status: offline
|
CSS: Web Subdirectories/File "No Right Click"... - 7/24/2004 3:45:32
CSS: Web Subdirectories and File "No Right Click" Protection Hello, First, I use FP 03. I have a private gallery of my own photographic work and while I have encrypted the login page and have "no right click" protected the gallery's main page with thumbnails, there are 30 HTML pages for now under it (one for each photo in full size). Which are so far not protected in that way. The mentioned two pages that are right-click protected are done so by a JavaScript I got that does that very efficiently. Yes, I could open each HTML and paste the script in over and over and over, but there must be less labor and time intensive way. The gallery software that generates all the HTML pages also created a CSS file in the gallery's root directory -- which I've included below. ___________________ -- Q-1: Is there a way to include this particular JavaScript (or another or ?) to the CSS so that the entire directories, files, and images under it are likewise protected? -- Q-2: Is there a way to do the same with encryption? Maybe not, since each page must be scrambled individually-- have it's own tandem encrypted html, but I'm really CSS newbie, so I may be totally wrong here. In short and in both cases, a way to "batch" protect, if you will. ___________________ Any help, advice, (free) script(s) referrals, and/or instruction appreciated. Resolution to Q-1 is the most needed at this point. Thank You. ~ Soniclight __________________________ body { background-color: #0000C0; scrollbar-arrow-color: #FFFFFF; scrollbar-3dlight-color: #80FFFF; scrollbar-highlight-color: #FFFFFF; scrollbar-face-color: #0000C0; scrollbar-shadow-color: #000080; scrollbar-darkshadow-color: #000080; scrollbar-track-color: #0DADF2; } hr { color: #C0C0FF; } td { font-family: arial, arial, helvetica, sans-serif; color: #FFFFFF; font-size: 10pt } td.header3 { font-family: arial, arial, helvetica, sans-serif; font-size: 16pt; font-weight: bold; color : #FFFFFF;} td.header2t { font-family: arial, arial, helvetica, sans-serif; font-size: 14pt; color : #FFFFFF;} td.navact { font-family: arial, arial, helvetica, sans-serif; font-size: 10pt; font-weight: bold; text-align: center; color : #0000C0; background-color: #0968F7 } td.navact2 { font-family: arial, arial, helvetica, sans-serif; font-size: 10pt; font-weight: bold; text-align: center; color : #0968F7; background-color: #0000C0 } td.navnext { font-family: arial, arial, helvetica, sans-serif; font-size: 10pt; font-weight: bold; text-align: center; color : #0968F7;} td.navnext2 { font-family: arial, arial, helvetica, sans-serif; font-size: 10pt; font-weight: bold; text-align: center; color : #FFFFFF;} td.navinactive { font-family: arial, arial, helvetica, sans-serif; font-size: 10pt; font-weight: bold; text-align: center; color : #C0C0FF;} td.thumbcell { text-align: center; font-family: arial, arial, helvetica, sans-serif; font-size: 10pt; color: #FFFFFF;} td.thumbcellbold { text-align: center; font-family: arial, arial, helvetica, sans-serif; font-size: 10pt; color: #0000C0; font-weight: bold; background-color: #0968F7;} td.menu { font-family: arial, arial, helvetica, sans-serif; font-size: 10pt; color : #0968F7 } td.created { font-family: arial, arial, helvetica, sans-serif; color: #C0C0FF; font-size: 7pt; } img { border-style: solid; border-color: #C0C0FF; border-width: 1px} a img{ border-color: #C0C0FF;} img.selected { border-style: solid; border-width: 1px; border-color: #C0C0FF;} a.mini:link { font-family: arial, arial, helvetica, sans-serif; color: #C0C0FF; font-size: 7pt } a.mini:visited { font-family: arial, arial, helvetica, sans-serif; color: #C0C0FF; font-size: 7p } a.mini:hover { font-family: arial, arial, helvetica, sans-serif; color: #0968F7; font-size: 7pt } a.mini:active { font-family: arial, arial, helvetica, sans-serif; color: #C0C0FF; font-size: 7pt }
< Message edited by Soniclight -- 7/24/2004 3:53:33 >
|
|
|
|
c1sissy
Posts: 5084 Joined: 7/20/2002 From: NJ Status: offline
|
RE: CSS: Web Subdirectories/File "No Right Click&q... - 7/24/2004 20:02:49
Hi Soniclight, I just wanted to let you know that its sometimes very slow here on the weekends, but I know someone will be along to help you out. I actually think this might be more of a front page issue though, I'm not sure. Just hang on and be patient, and sorry I'm not familar with what it is that you need help with.
_____________________________
Deb-aka-c4Ksissy high panjandurum and alpha female of the silverback tribe As decreed by Jesper 5-24-2003. The only stupid question is... the one that is never asked!! http://directory.css-styling.com http://fmsforum.com http://positioniseverything.net/ http://www.tanfa.co.uk/
|
|
|
|
Soniclight
Posts: 89 Joined: 7/23/2003 Status: offline
|
RE: CSS: Web Subdirectories/File "No Right Click&q... - 7/24/2004 21:06:26
Thanks for reply. I'll hang in there -- it's not an emergency, just something I'd like to learn and apply in some way. At worst, I'll have to... copy/locate body tag/insert cursor/paste copy/locate body tag/insert cursor/paste copy/locate body tag/insert... ... 30 times. And Save, of course, 30 times - LOL ~ Soniclight
< Message edited by Soniclight -- 7/24/2004 21:12:17 >
|
|
|
|
jeepless
Posts: 217 Joined: 12/20/2003 From: Smack in the middle of USA Status: offline
|
RE: CSS: Web Subdirectories/File "No Right Click&q... - 7/24/2004 22:41:59
Soniclight, There is a shorter method you can use rather than copy-and-paste the entire javascript into all 30 pages. Simply place your javascript in a separate (aka external) file, give that file a name using a .js extension (eg, "norightclick.js"), then link to this file within each of your 30 pages. Use the code below to link to your javascript file by placing it in the <head> section of each page: <script type="text/javascript" language="javascript" src="/path/norightclick.js"></script> You will still have to copy-and-paste into all 30 pages, but at least it's less code to copy and less chance of error when doing so. And if you ever find a need to alter the javascript itself, you only have to change one file (norightclick.js) and all 30 pages will automatically pick up that change. CSS can NOT execute javascripts so there's no way to link or place your code in your CSS. It must reside in each page itself, whether it's the actual javascript code or a link to an external javascript file. Also, beware that this type of "protection" is very easily defeated. All a visitor needs to do is turn-off javascript in their browser and they will be able to right-click on your photos and save them to their hard drive. I frequently surf the web without javascript enabled so this protection wouldn't stop people like me (but that's not why I have it disabled!). The latest security warnings for IE have also strongly suggested that everyone running IE should disable active scripting (javascript). And if that wasn't bad enough, many people know that all images shown on a page are also stored in their "Temporary Internet Files" folder, so it's just a matter of dragging them out of there and into another folder on their hard drive. Finally, if a visitor using IE has the "Show Image Toolbar" option enabled, they're given a toolbar on each photo that lets them save that picture to their hard drive -- and it requires a LEFT-click to do it. But at least you can disable this toolbar by also placing the appropriate META tag into the <head> section of each page. I can give you that tag if you're interested. So how do you protect your photos? You can't, plain and simple. If someone wants them, they have numerous ways to get them. But at least your javascript might stop the casual, unsophisticated visitor from getting them. Hope that helps.... Jeepless
|
|
|
|
Soniclight
Posts: 89 Joined: 7/23/2003 Status: offline
|
RE: CSS: Web Subdirectories/File "No Right Click&q... - 7/25/2004 18:17:20
Hey, thanks for detailed reply. A bit late on reply cuz... I had to be taken to the hospital for what turned out to be a kidney stone. T'was real painful stuff, mellowed out now (had a couple of morhphine type meds put into me via intravenous). Simply put -- gotta recoup and deal with life outside of scripts and FP for now :) Will get back to this fun nerdy stuff once I'm doing better. No reply necessary. ~ Soniclight
|
|
|
|
dpf
Posts: 7123 Joined: 11/12/2003 From: India-napolis Status: offline
|
RE: CSS: Web Subdirectories/File "No Right Click&q... - 7/25/2004 19:41:37
quote:
turned out to be a kidney stone. T'was real painful stuff, mellowed out now Ive had a bunch of em..<smile> for me the "mellow out" was morphine the first time. I hope your pass so they dont have to extract em..good luck
_____________________________
Dan
|
|
|
|
c1sissy
Posts: 5084 Joined: 7/20/2002 From: NJ Status: offline
|
RE: CSS: Web Subdirectories/File "No Right Click&q... - 7/26/2004 7:24:48
Soniclight: You take care of yourself, I had the gal bladder stones that got stuck in my pancrease, so I understand your pain and how you feel. Get rest and take care of yourself.
_____________________________
Deb-aka-c4Ksissy high panjandurum and alpha female of the silverback tribe As decreed by Jesper 5-24-2003. The only stupid question is... the one that is never asked!! http://directory.css-styling.com http://fmsforum.com http://positioniseverything.net/ http://www.tanfa.co.uk/
|
|
|
|
Soniclight
Posts: 89 Joined: 7/23/2003 Status: offline
|
RE: CSS: Web Subdirectories/File "No Right Click&q... - 7/26/2004 16:48:36
Thanks for kind words, c1sissy. Luckily the real painful part is over, yet I can tell the little sucker is slowly travelin' down. So I I can pretty much function normally but gotta be careful (i.e. no sudden moves :) ~ Sonclight
|
|
|
|
Soniclight
Posts: 89 Joined: 7/23/2003 Status: offline
|
RE: CSS: Web Subdirectories/File "No Right Click&q... - 7/28/2004 4:44:28
Hi Deb-aka-c3Ksissy and Everyone, Thanks again for kindly words. Thought I was out of the woods faster than 'tis. Gotta take it slow. BTW I tried the shorter version instead of copy/pasting the whole script in, and I must have goofed. Pasting in the whole script worked. But I only tested one page. As I said, this ain't the time to do this. And, my hosting co. is doing some research on something related to this (better password script than using JS), so maybe something will pop up there too. _________________ OK, that's it. So might as well close this thread temporarily or permanently. You ladies and gents do whatever you please. Thanks for everything -- code wise & human wise :) I've gotta outta here. - NRN - ~ Soniclight (a.k.a. Philip Knight)
|
|
|
|
c1sissy
Posts: 5084 Joined: 7/20/2002 From: NJ Status: offline
|
RE: CSS: Web Subdirectories/File "No Right Click&q... - 7/28/2004 7:36:18
Philip Just take it easy, we all will be here when you come back, and good luck with your site!
_____________________________
Deb-aka-c4Ksissy high panjandurum and alpha female of the silverback tribe As decreed by Jesper 5-24-2003. The only stupid question is... the one that is never asked!! http://directory.css-styling.com http://fmsforum.com http://positioniseverything.net/ http://www.tanfa.co.uk/
|
|
|
|
Soniclight
Posts: 89 Joined: 7/23/2003 Status: offline
|
RE: CSS: Web Subdirectories/File "No Right Click&q... - 7/29/2004 9:15:57
Well, I'm getting almost back to nomal, so figured I'd add a little update. I just went ahead and pasted the whole code in x 30. Using shortcut keys, it didn't take very long. I somehow got it to where each page opened just at the right insert line :) In short, one way or another, mission accomplished. Yo. Ciao. NRN ~ Soniclight
|
|
|
|
dpf
Posts: 7123 Joined: 11/12/2003 From: India-napolis Status: offline
|
RE: CSS: Web Subdirectories/File "No Right Click&q... - 7/29/2004 13:47:51
did you pass the stone?
_____________________________
Dan
|
|
|
|
Soniclight
Posts: 89 Joined: 7/23/2003 Status: offline
|
RE: CSS: Web Subdirectories/File "No Right Click&q... - 7/29/2004 18:14:27
Faxt is, I dunno. Doc aaid this may happen (not being able to tell. All I know is that there is hardly any pain anymore anywhere -- except in the evening for some reason, yet that's still going down progressively too. Fading soreness, really. So answer must be -- must have. Thanks for asking. Useful AND friendly, this Outfront place :) ~ Soniclight
< Message edited by Soniclight -- 7/29/2004 18:59:08 >
|
|
|
|
dpf
Posts: 7123 Joined: 11/12/2003 From: India-napolis Status: offline
|
RE: CSS: Web Subdirectories/File "No Right Click&q... - 7/29/2004 18:41:01
the first time I had one, they gave me pain killers and told me to pee thru a strainer (not so bad after you figure out have no to splash). I never found anything, never had anoterh attack and never went back. the second time, 4 yrs later, i went to emergency room, got morphine, went to family doc and then to urologist - then for xrays and he said it was "stuck" went for lithotripsy which is ultra sound (very cool ) to blast it. 3rd time, same path except by the time I got xrays, it was gone!!!! good luck
_____________________________
Dan
|
|
New Messages |
No New Messages |
Hot Topic w/ New Messages |
Hot Topic w/o New Messages |
Locked w/ New Messages |
Locked w/o New Messages |
|
Post New Thread
Reply to Message
Post New Poll
Submit Vote
Delete My Own Post
Delete My Own Thread
Rate Posts
|
|
|