-
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 ?
-
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.
-
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 ?
-
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.
-
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?
-
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.
-
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
-
-
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.
-
Senior Member
I'm sorry but I have to reply.
Why would you want to ban certain IP addresses?
-
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?
-
Senior Member
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/;
-
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 ?
-
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!
-
so basically id need to direct the specific person to a certain page ??
-
Wasn't that the whole point?
-
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
-
Well EQ gave you that link! May give it a try later on, but no promises!
http://www.macromedia.com/support/fl...shared_object/
-
Moderator
-
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
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|