Dim URL wedi'i lwytho
0 / 0

Gludwch URLs yn y bar ochr i ddechrau

Pwyswch S i doglo'r bar ochr  ·  ? am gymorth
Efallai bod y wefan hon yn rhwystro mewnosod iframe. Gallai'r dudalen ymddangos yn wag.

Cymorth a Datrys Problemau
Pam na fydd rhai gwefannau'n llwytho
Pam mae'r dudalen yn wag?

Mae llawer o wefannau'n rhwystro mewnosod iframe trwy benawdau HTTP. Mae hwn yn nodwedd diogelwch sy'n amddiffyn rhag clickjacking.

⚠ Sut mae rhwystro'n gweithio

Mae gwefannau'n anfon penawdau'n dweud wrth eich porwr: "Peidiwch â'm mewnosod." Mae'r porwr yn ufuddhau → iframe gwag.

PennawdEffaith
X-Frame-Options: DENYRhwystro popeth
X-Frame-Options: SAMEORIGINYr un parth yn unig
CSP: frame-ancestors 'none'Rhwystr modern
Cydnawsedd
GwefanStatws
Google, Gmail, GitHubRhwystrwyd
Facebook, X / TwitterRhwystrwyd
WikipediaRhannol
Eich gwefannau eich hunGweithio ✓
Offer mewnol / dangosfyrddauGweithio ✓
Gwefannau statig / dogfennauGweithio ✓
Gwneud i'ch gwefannau weithio
✓ Argymhellir

Gosodwch frame-ancestors i ganiatáu walkurls.com yn unig.

Apache (.htaccess)
Header set Content-Security-Policy "frame-ancestors 'self' https://walkurls.com"
Header unset X-Frame-Options
Nginx
add_header Content-Security-Policy "frame-ancestors 'self' https://walkurls.com";
Node.js / Express
app.use((req, res, next) => {
  res.setHeader('Content-Security-Policy',
    "frame-ancestors 'self' https://walkurls.com");
  res.removeHeader('X-Frame-Options');
  next();
});
PHP
header("Content-Security-Policy: frame-ancestors 'self' https://walkurls.com");
header_remove("X-Frame-Options");
Vercel (vercel.json)
{
  "headers": [{
    "source": "/(.*)",
    "headers": [{
      "key": "Content-Security-Policy",
      "value": "frame-ancestors 'self' https://walkurls.com"
    }]
  }]
}
Netlify (_headers)
/*
  Content-Security-Policy: frame-ancestors 'self' https://walkurls.com
Profi

Agorwch DevTools F12 → Consol. Os wedi'i rwystro:

Refused to display 'https://...' in a frame
because it set 'X-Frame-Options' to 'deny'.

Gwiriwch benawdau drwy'r terfynell:

curl -I https://your-site.com | grep -i "frame\|content-security"
Diogelwch
⚠ Peidiwch byth â defnyddio frame-ancestors * mewn cynhyrchiad

Nodwch bob amser: https://walkurls.com

Llwybrau byr bysellfwrdd
Blaenorol / Nesaf
SpaceToglo awtochwarae
Home EndCyntaf / Olaf
SToglo bar ochr
FSgrin lawn
?Y panel cymorth hwn