LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Security
User Name
Password
Linux - Security This forum is for all security related questions.
Questions, tips, system compromises, firewalls, etc. are all included here.

Notices


Reply
  Search this Thread
Old 07-11-2020, 05:53 AM   #16
Michael Uplawski
Senior Member
 
Registered: Dec 2015
Posts: 1,622
Blog Entries: 40

Rep: Reputation: Disabled

I stand corrected.

With a little reflection I should have guessed that the HTTP request- and response-parameters are involved. This is proof of the harm that Web-application-frameworks do to a developer's brain. 10 years after and I have still not recovered.
 
Old 07-11-2020, 05:55 AM   #17
ondoho
LQ Addict
 
Registered: Dec 2013
Posts: 19,872
Blog Entries: 12

Rep: Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053
Quote:
Originally Posted by Michael Uplawski View Post
Astonish me and tell me how a PHP-generated web-page creates cookies. At this moment, I know nothing about it and really need to learn this.

When the web-page creates cookies, it is already loaded in a browser. I cannot see what else but JavaScript would be able to do anything “dynamic” at this moment. PHP will most certainly create the JavaScript which is shipped along with the generated HTML, as do any other Web-Application frameworks, like jsp, faces, rails, sinatra... etc.
You should be using uMatrix instead of NoScript, then you'd see that cookies are not dependent on javascript.
No offense, but a sentence like "PHP will most certainly create the JavaScript which is shipped along with the generated HTML" is nonsense.
Plenty web pages come completely without javascript, plenty PHP that does not create any javascript at all.
PHP creates the page - and, if so configured, the cookie - in the moment it is requested from the client.
It is server side scripting. Do you know the difference between that and client-side scripting (e.g. javascript)?

Quote:
Originally Posted by Michael Uplawski View Post
I only hope that they know what they are doing.
Sounds like a case of people in charge having no clue about how the internet works, resulting in completely blue-eyed outsourcing.
 
Old 07-11-2020, 01:09 PM   #18
boughtonp
Senior Member
 
Registered: Feb 2007
Location: UK
Distribution: Debian
Posts: 3,599

Rep: Reputation: 2546Reputation: 2546Reputation: 2546Reputation: 2546Reputation: 2546Reputation: 2546Reputation: 2546Reputation: 2546Reputation: 2546Reputation: 2546Reputation: 2546

Always disable Third-Party Cookies - they have no value to you, whilst allowing malicious entities to spy on your activities and interests.

uMatrix and/or Privacy Badger both make it easy to conditionally allow such cookies when you're dealing with websites written by incompetent developers.

 
1 members found this post helpful.
Old 07-14-2020, 12:05 AM   #19
Michael Uplawski
Senior Member
 
Registered: Dec 2015
Posts: 1,622
Blog Entries: 40

Rep: Reputation: Disabled
Quote:
Originally Posted by ondoho View Post
Do you know the difference between that and client-side scripting (e.g. javascript)?
As I had ignored the possibility to include all key/value pairs in request- and response, my misunderstanding was much heavier than that. But the resolution is also simpler.
 
Old 08-13-2020, 02:58 AM   #20
OliverYY
LQ Newbie
 
Registered: Jan 2020
Posts: 15

Rep: Reputation: Disabled
Cookies can't infect computers with viruses or other malware. However, some cyberattacks can hijack cookies and enable access to your browsing sessions.
 
1 members found this post helpful.
Old 09-22-2020, 05:52 AM   #21
Michael Uplawski
Senior Member
 
Registered: Dec 2015
Posts: 1,622
Blog Entries: 40

Rep: Reputation: Disabled
Quote:
Originally Posted by OliverYY View Post
Cookies can't infect computers with viruses or other malware. However, some cyberattacks can hijack cookies and enable access to your browsing sessions.
Cyberattacks, he?

You should care about who sets a cookie on which site (and why in hell, as they have nothing in common) and to what purpose. If you cannot find the answer, it is probably best to disable cookies.
 
Old 09-22-2020, 07:26 AM   #22
teckk
LQ Guru
 
Registered: Oct 2004
Distribution: Arch
Posts: 5,137
Blog Entries: 6

Rep: Reputation: 1826Reputation: 1826Reputation: 1826Reputation: 1826Reputation: 1826Reputation: 1826Reputation: 1826Reputation: 1826Reputation: 1826Reputation: 1826Reputation: 1826
Quote:
it is probably best to disable cookies
If you disable cookies in most web browsers then some pages wont load. More and more cloudflare sites are like that. I've tried to load pages that post "Go Away" if you don't have scripts and cookies enabled. That's because you are keeping them from making money.

I even had one the other day that curl would not get the source for. But it would load in a browser with cookies enabled.
 
1 members found this post helpful.
Old 09-22-2020, 08:58 AM   #23
boughtonp
Senior Member
 
Registered: Feb 2007
Location: UK
Distribution: Debian
Posts: 3,599

Rep: Reputation: 2546Reputation: 2546Reputation: 2546Reputation: 2546Reputation: 2546Reputation: 2546Reputation: 2546Reputation: 2546Reputation: 2546Reputation: 2546Reputation: 2546

Disabling third-party cookies only causes issues in rare situations, (and can be used as an indicator of how much you should/shouldn't trust a website/company - and again, uMatrix and/or Privacy Badger are useful tools for dealing with those situations).

Any site that wants search engines to spider them cannot stop people accessing it - because any blocks they put in place can be bypassed by making oneself look like a bot.

 
Old 09-23-2020, 05:20 AM   #24
Michael Uplawski
Senior Member
 
Registered: Dec 2015
Posts: 1,622
Blog Entries: 40

Rep: Reputation: Disabled
My line was:
Quote:
If you cannot find the answer, it is probably best to disable cookies.
PSE cite me correctly or do not cite me. TY.
 
Old 09-27-2020, 02:31 PM   #25
ondoho
LQ Addict
 
Registered: Dec 2013
Posts: 19,872
Blog Entries: 12

Rep: Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053
Quote:
Originally Posted by boughtonp View Post
Disabling third-party cookies only causes issues in rare situations, (and can be used as an indicator of how much you should/shouldn't trust a website/company - and again, uMatrix and/or Privacy Badger are useful tools for dealing with those situations).
Fully agree: a whitelist approach is the safest and sanest thing to do when browsing the WWW of 2020...
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
What cookies does linuxquestions send a user? Must I enable cookies to keep logged in? winger9 Linux - Newbie 2 01-18-2014 07:24 PM
cookies in Firefox - can Google read Yahoo! cookies? nerdofdarkness Linux - Newbie 9 11-11-2013 01:04 AM
Will a RISK Processor Run on Linux, PA-RISK 8500 at 400MHz CPU IBNETMAN79 Linux - General 2 03-08-2002 07:09 PM
Will a RISK Processor Run Linux, PA-RISK 8500 CPU IBNETMAN79 Linux - Newbie 1 03-08-2002 06:49 PM
Will A RISK CPU Run Linux, HP PA-RISK 8500 CPU IBNETMAN79 General 0 03-08-2002 06:39 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Security

All times are GMT -5. The time now is 08:16 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration