SitePoint Sponsor

User Tag List

Results 1 to 3 of 3

Thread: Protection

  1. #1
    SitePoint Enthusiast
    Join Date
    Sep 2002
    Posts
    71
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Question Protection

    Ok,,,

    I am looking for a script that will protect my pop-ups!!!

    ok here is what i have,,
    my site is a music video website
    and i launch all of my music videos in a new pop-up window... where the visitors will see the video and on top of that an ad....
    simple,,, ok
    what i want is to protect these pop-ups,, i don't want people to open these pop-ups in regular browser windows...

    i want a script that will check whether a window is opened in a regular browser or directly without going through the page that has the link to the pop-up window...

    and in which case the script will redirect the user to a new page or something,,,
    all i wanna do is just force people to open the pop-up from my site not from anywhere else or though a raw link to the pop-up page

    please help
    and thanks in advance
    Last edited by Faycal; Dec 8, 2002 at 13:53.

  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)
    Just check the referrer. If it's not from the page you specified (or at least in your domain), redirect the user to the page you want them to view the video in.

    --Vinnie

  3. #3
    SitePoint Enthusiast
    Join Date
    Sep 2002
    Posts
    71
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    ok how do u do that,,,???
    I don't know Javascript


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
  •