Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. Web Development
  3. I want to restrict users to access JS and CSS files using URL absolute path.

I want to restrict users to access JS and CSS files using URL absolute path.

Scheduled Pinned Locked Moved Web Development
javajavascriptcsscomtools
2 Posts 2 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • A Offline
    A Offline
    A k ch
    wrote on last edited by
    #1

    Hi all I want to restrict users to access Java script files and CSS files using URL absolute path. Like if user type http://www.xyzxyz123.com/common.js this, browser will give a prompt to save the common.js file or it will open the js file content. So i want to restrict this type of access. I had searched on google but i didn't get the solution can anybody suggest me a solution for this. Thanks for your time and consideration. Please help me.

    Thanks & Regards, Anil Chelasani

    N 1 Reply Last reply
    0
    • A A k ch

      Hi all I want to restrict users to access Java script files and CSS files using URL absolute path. Like if user type http://www.xyzxyz123.com/common.js this, browser will give a prompt to save the common.js file or it will open the js file content. So i want to restrict this type of access. I had searched on google but i didn't get the solution can anybody suggest me a solution for this. Thanks for your time and consideration. Please help me.

      Thanks & Regards, Anil Chelasani

      N Offline
      N Offline
      Niladri_Biswas
      wrote on last edited by
      #2

      Cannot be done. You can try to hide your JavaScript and CSS in obfuscated files, but since the user's browser needs to have it in order to display your page, the resourceful user can always distill it back from there. :)

      Niladri Biswas

      1 Reply Last reply
      0
      Reply
      • Reply as topic
      Log in to reply
      • Oldest to Newest
      • Newest to Oldest
      • Most Votes


      • Login

      • Don't have an account? Register

      • Login or register to search.
      • First post
        Last post
      0
      • Categories
      • Recent
      • Tags
      • Popular
      • World
      • Users
      • Groups