473,386 Members | 1,679 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,386 software developers and data experts.

use script only on non secure pages.

I am working on Magento.
I have to apply script only on non-secure pages this script is not affected on secure page.
pls give me some idea how to do??
Thanks in advance............!!!!!!!!!!!
Jul 4 '13 #1
1 1081
Atli
5,058 Expert 4TB
What do you mean by "non-secure"? Are you talking about pages not requested through SSL/TSL? If that is the case, you can check the $_SERVER["HTTPS"] element. It will be a non-empty value if the request was made securely.
Expand|Select|Wrap|Line Numbers
  1. if (!empty($_SERVER["HTTPS"])) {
  2.     // It's a secure request.
  3. }
  4. else {
  5.     // It's a non-secure request!
  6. }
  7.  
Jul 5 '13 #2

Sign in to post your reply or Sign up for a free account.

Similar topics

6
by: Billy Jacobs | last post by:
I have a website which has both secure and non-secure pages. I want to uses forms authentication. How do I accomplish this? Originally I had my web.config file in the root with Forms...
1
by: Astra | last post by:
Hi All I know this probably sounds like a newbie question, but I was under the impression that secure pages (https) don't appear in the history/address bar history list - this appears to be...
3
by: Pooja Renukdas | last post by:
Hello, I have this web site where only two pages have to be secure pages and I need to call them using https, but since I have my development server and my production web server, I dont want to...
0
by: aditya | last post by:
Hi, I am working on .NET framework 1.1. I am not able to access the secure pages and get parser error when trying to do so. The stuff worked fine with .NET framework 1.0 Are we supposed to...
1
by: Iulian Ionescu | last post by:
I have a page (http://www.something.com/) and a secure page (https://secure.something.com) and the secure.something.com points to http://www.something.com/secure/ All works ok, but, when I...
0
by: Chris Davoli | last post by:
I've got an asp app that needs to use SSL only for certain pages. Is there a way to shut off port 80 for certain pages (HTTS pages), but have it open for other pages? Can this be done in IIS? OR is...
0
by: rb | last post by:
I'm writing an application that should have few pages secure (signin, account management etc) and a bunch of pages that are "public" (http, non-secure). I thought that because the way...
0
by: amitvps | last post by:
Secure Socket Layer is very important and useful for any web application but it brings some problems too with itself. Handling navigation between secure and non-secure pages is one of the cumbersome...
13
by: silmana | last post by:
hi again, i am done with the login form everything works fine so i just want to know how to make the welcomein.php private?? i am working on a community so you would know what i mean could some one...
0
by: canabatz | last post by:
im trying to build my login page with ssl https:// to login.php and the padlock is not showing ,it is showing it for 0.1 seconds and gone!! if i dont have any images on the page ,it is working...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.