dcsimg
A Flash Developer Resource Site

Page 1 of 2 12 LastLast
Results 1 to 20 of 33

Thread: Is it possible to refuse an IP address to ur site

  1. #1
    Senior Member
    Join Date
    Aug 2000
    Posts
    473

    Smile

    Is it possible to refuse access to an IP address to your site.

    For example is there a way i can bar someones ip adress from loging on to my site and redirecting them else where ?

  2. #2
    NerdInside's Avatar
    Join Date
    May 2001
    Location
    Penguin Island
    Posts
    3,439
    You cannot ban someone forever no matter what, that I can tell you for sure.

    Next, you could use a PHP script on each one of your pages that checks the IP against a database. If found, reject. But that isn't that smart way.

    The smart way is to set something up on the server, like an extra program.

  3. #3
    Senior Member
    Join Date
    Aug 2000
    Posts
    473

    Smile

    do u know how to achieve the php way? as i could simply add that to my index page.

    Also would that way be able to re-direct that ip to another site or page ?

    One last thing is there any ways of finding out what someone ip address is ?

  4. #4
    NerdInside's Avatar
    Join Date
    May 2001
    Location
    Penguin Island
    Posts
    3,439
    Question 1 answer: Yes, but then you do not always go through the index page. I came to board.flashkit.com/board/forumdisplay.php?forumid=61 never touching http://www.flashkit.com/index.html

    Q 2 A: Yes

    Q 3 A: Yes

    E-mail me for answers to 2 and 3. Or info about I should say.

  5. #5
    Senior Member
    Join Date
    Aug 2000
    Posts
    309
    banning ip addresses doesn't work

    for example, i'm an adsl user with dynamic ip - evrytime i connect i get a different ip - same as plenty of dial-ups.

    how about using a cookie instead in some way?








  6. #6
    NerdInside's Avatar
    Join Date
    May 2001
    Location
    Penguin Island
    Posts
    3,439
    Cookies can be deleted and many cleaning programs clean them right about.


    How about SharedObjects? No cleaning programs delete them yet. Just make a simple move that is 10x10 and place it at the bottom of each page.

  7. #7
    Senior Member
    Join Date
    Aug 2000
    Posts
    473
    how does the thing with cookies work then ?

    Basically i was on a page the other day and i clicked on a link on the site which took me to a blank page but ever since then when i go to the home page i get redirected to a nonexisting page.....

    That must have place a cookie inmy machine then eh ?

    So how is that done

  8. #8
    Senior Member
    Join Date
    Aug 2000
    Posts
    473
    ?

  9. #9
    Senior Member
    Join Date
    Mar 2001
    Posts
    237

    Smile

    put a form on the page that asks "what is your IP address?". after they hit submit, say "if (IPaddress == bannedAddress) goto redirected page"



    this is a fool proof method.

  10. #10
    Senior Member EQFlash's Avatar
    Join Date
    Jun 2002
    Location
    where i'm at
    Posts
    2,735
    I'm sorry but I have to reply.
    Why would you want to ban certain IP addresses?

  11. #11
    Senior Member
    Join Date
    Aug 2000
    Posts
    473
    theres no malice intended with it its just theres a full peopel i dont want on my site.

    Also people aint going to enter their ip address and most of them dont know what it is.

    Im thinking the cookie idea might be the best way...

    Anyone know how to do it?

  12. #12
    Senior Member EQFlash's Avatar
    Join Date
    Jun 2002
    Location
    where i'm at
    Posts
    2,735
    I would use NerdInside's idea and use sharedObjects.
    you can go here to find out more info
    http://www.macromedia.com/support/fl...shared_object/;

  13. #13
    Senior Member
    Join Date
    Aug 2000
    Posts
    473
    emmmm i dont think they're going to tell me how to ban ip adresses. hehehe

    Also how would i find out the ip addresses in the first place ?

  14. #14
    Banned
    Join Date
    Apr 2001
    Location
    Montréal, Québec.
    Posts
    25,397
    You don't need the IP address...

    Shared Object is sort of like a cookie. You write a file on the user's machine, next time he's around you look for it and if it's there you re-direct!

    Don't really know if it would work though! Never tested it!

  15. #15
    Senior Member
    Join Date
    Aug 2000
    Posts
    473
    so basically id need to direct the specific person to a certain page ??

  16. #16
    Banned
    Join Date
    Apr 2001
    Location
    Montréal, Québec.
    Posts
    25,397
    Wasn't that the whole point?

  17. #17
    Senior Member
    Join Date
    Aug 2000
    Posts
    473
    yeah i suppose, i guess i was kinda thinking of a way of finding out peoples ip and barring them or placing a cookie in there machine.

    Ok.... do you know where id start cos im a bit lost and i really want to get this done

  18. #18
    Banned
    Join Date
    Apr 2001
    Location
    Montréal, Québec.
    Posts
    25,397
    Well EQ gave you that link! May give it a try later on, but no promises!

    http://www.macromedia.com/support/fl...shared_object/

  19. #19

  20. #20
    Senior Member
    Join Date
    Aug 2000
    Posts
    473
    yeah but how do u find out their ip in the first place ?

Posting Permissions

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




Click Here to Expand Forum to Full Width

HTML5 Development Center