Welcome Guest, Not a member yet? Register   Sign In
howto restrict reaching functions from url
#1

[eluser]emrah[/eluser]
Hi all.

My problem is based on the security.

I'm coding my site with the help of jquery.
There is no usage of href elements in the pages.
I'm requesting new pages with the help of jquery. Also forms are posting with ajax.

If someone looks into my js code (with firebug or chrome developer tools )he can clearly see the url addresses where I'm sending my data.

So If he copies and pastes that url into browser he can easily reaches that page.

Let's think about I have a url like this:
http://localhos/project/controllerpage/f...nparameter

If I call this url within javascript everything is fine and no problem.

If someone types this url into browser he can still access my page. So this is the problem.
I don't want that any person reaches my controller and also functions in it directly.

So what can I do to restrict directly access to my pages.

I tried to change my functions with private ones. So I add a "_" at the beginning of my all functions.
But this was created a new problem. I cannot reach my functions within the javascript.

Thanks...


Messages In This Thread
howto restrict reaching functions from url - by El Forum - 04-18-2010, 10:55 AM
howto restrict reaching functions from url - by El Forum - 04-18-2010, 11:26 AM
howto restrict reaching functions from url - by El Forum - 04-18-2010, 11:48 AM
howto restrict reaching functions from url - by El Forum - 04-18-2010, 12:18 PM
howto restrict reaching functions from url - by El Forum - 04-18-2010, 01:11 PM
howto restrict reaching functions from url - by El Forum - 04-18-2010, 01:24 PM
howto restrict reaching functions from url - by El Forum - 04-18-2010, 02:16 PM



Theme © iAndrew 2016 - Forum software by © MyBB