How to make parts of a website under SSL and the rest not?

I need to create a cherrypy main page that has a login area. I want the login area to be secure, but not the rest of the page. How can I do this in CherryPy?

Ideally, any suggestions will be compatible with http://web.archive.org/web/20170210040849/http://tools.cherrypy.org:80/wiki/AuthenticationAndAccessRestrictions


Asked by: Rafael303 | Posted: 24-09-2021






Answer 1

Assuming you only want parts of the actual page to be secure, you should create an iframe pointing to a HTTPS source. However, this shows a "secure and non-secure items on page" warning to the user.

Answered by: Connie313 | Posted: 25-10-2021



Answer 2

This is commonly considered a bad idea. The primary reason is that it confuses most people due to the website identity markers appearing in just about every current browsers url area.

Answered by: Michelle891 | Posted: 25-10-2021



Similar questions

python - Search Files& Dirs on Website

Hi im coding to code a Tool that searchs for Dirs and files. have done so the tool searchs for dirs, but need help to make it search for files on websites. Any idea how it can be in python?


Other than basic python syntax, what other key areas should I learn to get a website live?

Other than basic python syntax, what other key areas should I learn to get a website live? Is there a web.config in the python world? Which libraries handle things like authentication? or is that all done manually via session cookies and database tables? Are there any web specific libraries? Edit: sorry! I am well versed in asp.net, I want to branch out and learn Python, hence this q...


python - How to find out the exact RSS XML path of a website?

How do I get the exact feed.xml/rss.xml/atom.xml path of a website? For example, I supplied "http://www.example.com/news/today/this_is_a_news", but the rss is pointing to "http://www.example.com/rss/feed.xml", most modern browsers have this features alr...


python - Help on my django models for my shoe review website

What i'm trying to achieve at this point: Allow me to add new shoe objects, and shoe review objects. complete Allow "Owner Reviews" on each shoe complete (I think, but there might be somewhere in my model I can improve) Allow ratings of attributes defined by me which are linked to a particular shoe. Preferably, having an easy way to iterate all of the rating fields related ...


html - Python Script to check website for a tag

I'm trying to figure out how to go about writing a website monitoring script (cron job in the end) to open up a given URL, check to see if a tag exists, and if the tag does not exist, or doesn't contain the expected data, then to write some to a log file, or to send an e-mail. The tag would be something like or something relatively similar. Anyone have any ideas?


Python & HTML: Make user login to use website

I'm creating a website with a database search functionality, but I want to make the user login or create a account first to use the search functionality. How do I do this? And what is the easiest way to carry the login session forward. I.E. the user only has to login once to do many searches.


Error while trying to parse a website url using python . how to debug it?

#!/usr/bin/python import json import urllib from BeautifulSoup import BeautifulSoup from BeautifulSoup import BeautifulStoneSoup import BeautifulSoup def showsome(searchfor): query = urllib.urlencode({'q': searchfor}) url = 'http://ajax.googleapis.com/ajax/services/search/web?v=1.0&%s' % query search_response = urllib.urlopen(url) search_results = search_response.read() results = json.loads(search...


How do I parse a website in python once I know its url?

If I know the url of a wiki site , How do I use python to parse the contents of it ?


python - unable to access website with urllib and proxy

I've opened a ssh tunnel with ssh -D localhost:5678 me@server.com and I want to use it in my python3 application. #!/usr/bin/python3.1 # -*- coding:Utf-8 -*- import urllib.request proxyhand = urllib.request.ProxyHandler({"socks" : "http://localhost:5678"}) opener = urllib.request.build_opener(proxyhand) page = opener.open("http://www.mysite.com") Where mysite.com can only be...


python - Upload pic from another website using django

I want to make an image uploader using images links on the internet (eq: wwww.google.com/image.jpg). The user writes the previous url and then my model upload it. This my code: form <input id="id_name" type="text" name="name" maxlength="255" value="www.example.com/main.jpg" /> view.py def Post_date(): if request.meth...


python - Search Files& Dirs on Website

Hi im coding to code a Tool that searchs for Dirs and files. have done so the tool searchs for dirs, but need help to make it search for files on websites. Any idea how it can be in python?


Other than basic python syntax, what other key areas should I learn to get a website live?

Other than basic python syntax, what other key areas should I learn to get a website live? Is there a web.config in the python world? Which libraries handle things like authentication? or is that all done manually via session cookies and database tables? Are there any web specific libraries? Edit: sorry! I am well versed in asp.net, I want to branch out and learn Python, hence this q...


Review Website In Python. Is django right for this?

Basically, I misread this but would still really appreciate some assurance. I recently came across the django tutorial (http://djangotutorial.com) and have fell in love with the framework. I have a website that is simply ran on wordpress and a simple plugin at the moment at http://runningshoes...


python - How to find out the exact RSS XML path of a website?

How do I get the exact feed.xml/rss.xml/atom.xml path of a website? For example, I supplied "http://www.example.com/news/today/this_is_a_news", but the rss is pointing to "http://www.example.com/rss/feed.xml", most modern browsers have this features alr...


python - Help on my django models for my shoe review website

What i'm trying to achieve at this point: Allow me to add new shoe objects, and shoe review objects. complete Allow "Owner Reviews" on each shoe complete (I think, but there might be somewhere in my model I can improve) Allow ratings of attributes defined by me which are linked to a particular shoe. Preferably, having an easy way to iterate all of the rating fields related ...


html - Python Script to check website for a tag

I'm trying to figure out how to go about writing a website monitoring script (cron job in the end) to open up a given URL, check to see if a tag exists, and if the tag does not exist, or doesn't contain the expected data, then to write some to a log file, or to send an e-mail. The tag would be something like or something relatively similar. Anyone have any ideas?


Website stress test in Python - Django

I'm trying to build a small stress test script to test how quickly a set of requests gets done. Need to measure speed for 100 requests. Problem is that I wouldn't know how to implement it, as it would require parallel url requests to be called. Any ideas?


How can I open a website with urllib via proxy in Python?

I have this program that check a website, and I want to know how can I check it via proxy in Python... this is the code, just for example while True: try: h = urllib.urlopen(website) break except: print '['+time.strftime('%Y/%m/%d %H:%M:%S')+'] '+'ERROR. Trying again in a few seconds...' time.sleep(5)


How can I search a text in some website (not from the source) with Python?

I want to make an "autofill" that works like this: The site contains the Name and down the Name has the field to write it. So, I want to make a program the search the "Name" in the website, and before that, click down the "Name" and write the name (easy part)... How can I search for it? I can't use the site forms, because, everysite has different forms


python - Should I use Pylon's Paste to host my Pylons website? Or can I use Apache?

I'm looking into Pylons and was wondering, should I use Paste as the webserver or can I use Apache? Are there advantages to using Paste? Would you recommend against using Apache? How should I host the sites?






Still can't find your answer? Check out these communities...



PySlackers | Full Stack Python | NHS Python | Pythonist Cafe | Hacker Earth | Discord Python



top