Reply
Old 06-30-2009, 05:20 PM Restrict file
EricReese's Avatar
Super Talker

Posts: 137
Name: Eric Reese
Location: Maryland, USA
Trades: 0
Is there a way I can still have a stylesheet effect styles on the page, but if they try to open up the style.css file, it will redirect them? I don't want users to be able to view that file (PS, I'm open to JS solutions if that's the only way)

Thanks, and this is a hurry, so any idea will do. Also, don't forget that maybe .htaccess could do this too but I have no idea, so you would need to post code
__________________
I am 17 years old.Looking for Web Design Job(s). If interested use my contact page
CSS3.info | My site | W3C | Dynamic Site Solutions
Funny Line- "I'll Twitter your Yahoo! until I Google all over your FaceBook :D

Last edited by EricReese; 06-30-2009 at 05:24 PM..
EricReese is offline
Reply With Quote
View Public Profile Visit EricReese's homepage!
 
 
When You Register, These Ads Go Away!
Old 06-30-2009, 07:27 PM Re: Restrict file
orionoreo's Avatar
Extreme Talker

Posts: 238
Name: Jerry
Trades: 0
I don't believe this is possible, as its almost like hiding HTML tags from being viewed.

I don't know if this is the reason but I believe all these codes are client-side executed that is why.

Maybe somebody else has ideas.

Side question as well, what is it about your css that's so secretive from basic/standard practices, if you don't mind me asking.
orionoreo is online now
Reply With Quote
View Public Profile
 
Old 06-30-2009, 07:39 PM Re: Restrict file
EricReese's Avatar
Super Talker

Posts: 137
Name: Eric Reese
Location: Maryland, USA
Trades: 0
Nothing, well in the end I realized it was impossible so this is what I did. I moved the styles into a seperate stylesheet and put it at the end of the file and put a lot of tabs so if you scroll down you will never see a stylesheet. You would have to scroll horizontally, and no one would think of that And in the styleesheet in the head i replaced everythhing with a message saying haha you cant get in here blah bllah. Or something of that kind They would need to look carefully to see the css file

Cheers
__________________
I am 17 years old.Looking for Web Design Job(s). If interested use my contact page
CSS3.info | My site | W3C | Dynamic Site Solutions
Funny Line- "I'll Twitter your Yahoo! until I Google all over your FaceBook :D
EricReese is offline
Reply With Quote
View Public Profile Visit EricReese's homepage!
 
Old 06-30-2009, 07:40 PM Re: Restrict file
Junior Talker

Posts: 2
Trades: 0
I highly doubt this is doable, as the browser needs to download this code to interpert.

The best solution I can offer (without JavaScript) would be to compress it, so it would be annoying for a human to read.

http://www.cssdrive.com/index.php/main/csscompressor/
Jeremy Ross is offline
Reply With Quote
View Public Profile
 
Reply     « Reply to Restrict file
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off





   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML

 



Page generated in 0.11125 seconds with 13 queries