0

I have disabled JavaScript under "Site settings" in Chrome. That is, I selected: "Don't allow sites to use Javascript". After doing so, I encountered a webpage that somehow manages to refresh itself every 5 seconds, seemingly by using JavaScript. The page source was:

<html><body>
<script>{setInterval(function(){document.location.reload();},5000)}</script>
<div>
[...]

How come it was able to use JavaScript? (I confirmed the "JavaScript blocked" status on that page.)

4
  • 1
    Did it have a <meta refresh ... > tag?
    – CBHacking
    Commented Apr 13, 2023 at 4:00
  • @CBHacking no. If you go to https://archive.md, it's the page you see after clicking "save" to archive a url (i.e. it's the page you see while waiting for it to complete).
    – anon_wh1
    Commented Apr 13, 2023 at 4:13
  • @anon_wh1 so, it did have a <meta refresh ... > tag?
    – schroeder
    Commented Apr 20, 2023 at 8:17
  • @schroeder It did not have that tag. But it did use "HTTP refresh header".
    – anon_wh1
    Commented Apr 20, 2023 at 19:51

1 Answer 1

0

It turns out that JavaScript was actually blocked successfully, and what I observed was accomplished via "HTTP refresh header".

2
  • 1
    Can you expand on how this bypasses the blocking of Javascript?
    – schroeder
    Commented Apr 20, 2023 at 8:18
  • @schroeder JavaScript was blocked successfully and was not used here (what caused the refresh was a different thing: HTTP refresh header). I edited my answer to make that clear.
    – anon_wh1
    Commented Apr 20, 2023 at 19:50

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .