Check whether the page was browsed
Moderator: General Moderators
Check whether the page was browsed
Hi guys,
I have some .php files which I need to check whether they are browsed or not. I sometimessend $get vars to them(If I had not I would know how to do it). Is there any to do so?
I have some .php files which I need to check whether they are browsed or not. I sometimessend $get vars to them(If I had not I would know how to do it). Is there any to do so?
Reply
Well, I have these files(.php) which are used with Flash. Flash requests the file on the server, gets what that file has returned(A value), and parse it(or use it) in the very .swf file. I want to ban users to browse these files because sometimes some secure values are outputed.
-
nickvd
- DevNet Resident
- Posts: 1027
- Joined: Thu Mar 10, 2005 5:27 pm
- Location: Southern Ontario
- Contact:
Ah...
One way would be to send a special variable to the php file (from flash). Your php file would then check to see if this value exists AND is what it expects, if so, you're authorized, if not, leave!
<edit>
It wouldn't stop someone who is determined to access that output, then again a car alarm won't guarantee my car won't get stolen...
</edit>
One way would be to send a special variable to the php file (from flash). Your php file would then check to see if this value exists AND is what it expects, if so, you're authorized, if not, leave!
<edit>
It wouldn't stop someone who is determined to access that output, then again a car alarm won't guarantee my car won't get stolen...
</edit>
- Chris Corbyn
- Breakbeat Nuttzer
- Posts: 13098
- Joined: Wed Mar 24, 2004 7:57 am
- Location: Melbourne, Australia
- Chris Corbyn
- Breakbeat Nuttzer
- Posts: 13098
- Joined: Wed Mar 24, 2004 7:57 am
- Location: Melbourne, Australia
Reply
Thank you guys but this with the restriction, which I loved after I had read, made me think whether there was any way to filter IPs. I mean it is a forum which uses Flash and when a user invokes a movie the movie requests a .php page and here I want to(If it is possible for which I am not sure(Rather not)) make Flash sends its requests from the Server's IP.
As far as I know this is not possible but it just hit my mind while trying to find a solution.
Any help is highly appreciated.
You are great guys, continue in the same way.
As far as I know this is not possible but it just hit my mind while trying to find a solution.
Any help is highly appreciated.
You are great guys, continue in the same way.