SitePoint Sponsor

User Tag List

Results 1 to 4 of 4
  1. #1
    SitePoint Enthusiast otherground's Avatar
    Join Date
    Dec 2001
    Posts
    90
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Deny Outside Access to external Javascript

    Is there any way to deny outside access to an external javascript to all hosts with the exception of the domains that I specify?

    For instance, if my javascript is located at http://www.domain.com/external.js

    Is there a way that I can specify that only my web pages from my domain can access the file ?

    Using HTACCESS I can block by IP address and domain of the surfer, but how can I block which web server domains are allowed to access the file ?

  2. #2
    ☆★☆★ silver trophy vgarcia's Avatar
    Join Date
    Jan 2002
    Location
    in transition
    Posts
    21,235
    Mentioned
    1 Post(s)
    Tagged
    1 Thread(s)
    Look into mod_rewrite at http://www.sitepoint.com/article/910/ for some ideas.

  3. #3
    SitePoint Enthusiast otherground's Avatar
    Join Date
    Dec 2001
    Posts
    90
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Thanks for the tip ... I'm looking into this now.

  4. #4
    SitePoint Enthusiast otherground's Avatar
    Join Date
    Dec 2001
    Posts
    90
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Worked perfectly ... thanks.


Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •