How to prevent people from viewing some pages

Hello,

My site is http://kygekdownloads.freecluster.eu. The problem is people can view some pages, for example http://kygekdownloads.freecluster.eu/css/main.css. How can I make it show error 403 instead of people gaining access to the page? Any help would be very appreciated!

Thanks for your help.

  • KygekDev

But if you ban that link to people they won’t be able to read styles so your website will become pure html.

3 Likes

Also, why would you want to hide a stylesheet? Just put a copyright notice at the top.

1 Like

People are supposed to have access to that file.

If you’re browser can’t access .css files, none of the code will be applied to your page and, as @anon19508339 mentioned, it’ll become pure html.

If you’re worried about someone stealing your CSS code, well… nothing you can do about that (as far as I know).

As @HaydenANG mentioned, you can put a copyright notice at the top of the file or you can do as many people do and just have a © Kygek 2020 in your web page’s footer. That applies copyright to the whole page so you don’t have to bother with each file.

4 Likes

Thanks for the reply.

This topic was automatically closed 15 days after the last reply. New replies are no longer allowed.