CodeIgniter Forums

Full Version: Private pages in search engines
You're currently viewing a stripped down version of our content. View the full version with proper formatting.

El Forum

[eluser]yabune[/eluser]
Hi,

I'm creating a web application with CI.
I already implemented a login with sessions so that only the registered users can access it.

But what about the search engines?
Will it be protected from search engines?
Do I have to setup any extra settings so that the information inside the protected area doesn't show up on google?

Thank you!

El Forum

[eluser]BrianDHall[/eluser]
To test for yourself just go to one of your protected pages directly without being logged in, such as yoursite.com/membersonly/protectedpage - what does it do or say? That is what search engines will see, not your protected content.

El Forum

[eluser]bretticus[/eluser]
If you have server-side code that restricts a page from showing based on whether or not a session variable exists, then no, search engines cannot magically set that session variable. Your private pages are protected.

El Forum

[eluser]yabune[/eluser]
Thanks a lot!

That was what I need to know.

And the data in mysql database should I encrypt data, or is it ok to leave it as it is?

El Forum

[eluser]n0xie[/eluser]
You should probably hash passwords...

El Forum

[eluser]basty_dread[/eluser]
every function on your controller should have login validation. so that no one can enter, unless he/she log in..