Shoutbox

disallow access to all - Printable Version

-Shoutbox (https://shoutbox.menthix.net)
+-- Forum: MsgHelp Archive (/forumdisplay.php?fid=58)
+--- Forum: Skype & Technology (/forumdisplay.php?fid=9)
+---- Forum: Tech Talk (/forumdisplay.php?fid=17)
+----- Thread: disallow access to all (/showthread.php?tid=76746)

disallow access to all by Nathan on 08-13-2007 at 11:14 AM

Hey,
Basically I was wondering if it is possible to stop people going to you're css file but allow a script too access it.

Help :)

Thanks


RE: disallow access to all by Eddie on 08-13-2007 at 11:25 AM

quote:
Originally posted by Napbree
Hey,
Basically I was wondering if it is possible to stop people going to you're css file but allow a script too access it.

Help :)

Thanks
Why dont you change CHMOD permissions? or isnt that what you meant *-)
RE: disallow access to all by Nathan on 08-13-2007 at 11:26 AM

Nah, I think you need to you .htaccess


RE: disallow access to all by -dt- on 08-13-2007 at 11:28 AM

no, if the browser uses it, the user can view it. trust me no one cares about your css


RE: disallow access to all by joey on 08-13-2007 at 11:50 AM

in the nicest way possible of course :P


and wewt 500 posts! :cheesy:


RE: disallow access to all by Nathan on 08-13-2007 at 11:58 AM

I was using css as an example nub :P

* Nathan runs


RE: disallow access to all by -dt- on 08-13-2007 at 12:09 PM

quote:
Originally posted by Napbree
I was using css as an example nub :P

* Napbree runs
well no one cares about your javascript/php/*
RE: disallow access to all by Menthix on 08-13-2007 at 12:13 PM

quote:
Originally posted by Napbree
I was using css as an example
So name the actual use :p.

CSS is a client-side thing, the browser needs to be able to access it. Theoretically you could do something with referrals: only allow access if a referral from you site is sent. If somebody requests the CSS file directly the browser won't send a referral, so access is blocked.
However, I strongly advise you not to do that. Some users disable referrals and some anti virus software like McAfee is known to change referrals too, it will break your site for some users. Like dt said, nobody will care about your CSS that much anyway. And people will still be able to access the CSS with referral anyway, so the security is pointless.


quote:
Originally posted by Napbree
you're
your*
how do people manage to still get that wrong? you're stands for you are... it just doesn't make sense </rant>
RE: disallow access to all by Nathan on 08-13-2007 at 12:16 PM

I know what it stands for, I just didn't proof read the post :$