it-source

Wordpress 사이트를 해킹한 후 캐시 제거

criticalcode 2023. 2. 8. 18:00
반응형

Wordpress 사이트를 해킹한 후 캐시 제거

내 워드프레스 웹사이트가 해킹당했어사용자가 스팸 사이트로 리디렉션되었습니다.이미 웹사이트를 청소했고 이제 문제가 발생하지 않았기 때문입니다.

문제는 방문자가 캐시 또는 리다이렉트를 중지하고 페이지를 새로고침할 때까지 스팸 웹 사이트로 리다이렉트된다는 것입니다.

이걸 어떻게 고쳐야 할지 모르겠어요사용자의 캐시를 원격으로 제거할 수 없다는 것은 알지만, 리다이렉트가 시작되기 전에 사이트에 변경이 있음을 브라우저에 알리는 방법이 분명히 있을 것입니다.

이 코드는 이미 웹사이트에 추가되어 있습니다.

<meta http-equiv="cache-control" content="max-age=0" />
<meta http-equiv="cache-control" content="no-cache" />
<meta http-equiv="expires" content="0" />
<meta http-equiv="expires" content="Tue, 01 Jan 1980 1:00:00 GMT" />
<meta http-equiv="pragma" content="no-cache" />

좋은 생각 있어요?

나는 이 문제에 직면했고 또한 이 코드를 내 코드에 추가했다..htaccess파일을 삭제해 주세요.한번 써 보세요.

<IfModule mod_expires.c>
ExpiresActive on
ExpiresDefault "access plus 1 month"
ExpiresByType image/gif "access plus 1 month"
ExpiresByType image/png "access plus 1 month"
ExpiresByType image/jpg "access plus 1 month"
ExpiresByType image/jpeg "access plus 1 month"
ExpiresByType text/html "access plus 3 days"
ExpiresByType text/xml "access plus 1 seconds"
ExpiresByType text/plain "access plus 1 seconds"
ExpiresByType application/xml "access plus 1 seconds"
ExpiresByType application/rss+xml "access plus 1 seconds"
ExpiresByType application/json "access plus 1 seconds"
ExpiresByType text/css "access plus 1 week"
ExpiresByType text/javascript "access plus 1 week"
ExpiresByType application/javascript "access plus 1 week"
ExpiresByType application/x-javascript "access plus 1 week"
ExpiresByType image/x-ico "access plus 1 year"
ExpiresByType image/x-icon "access plus 1 year"
ExpiresByType application/pdf "access plus 1 month"
<IfModule mod_headers.c>
   Header unset ETag
   Header unset Pragma
   Header unset Last-Modified
   Header append Cache-Control "public, no-transform, must-revalidate"
   Header set Last-modified "Mon, 1 Apr 2017 10:10:10 GMT"
 </IfModule>
 </IfModule>
  1. Wordfence Security와 같은 플러그인을 사용하여 멀웨어 검사를 실행합니다.(악성 파일 및 코드를 찾는 데 도움이 됩니다.)
  2. WP 콘텐츠 폴더 열기
  3. "Cache" 폴더를 엽니다.
  4. 그런 다음 각 폴더를 열고 폴더에 저장된 내용을 삭제합니다.폴더를 삭제하지 마십시오(WP Fastest Cache와 같은 플러그인을 사용하여 캐시를 지울 수도 있습니다).

언급URL : https://stackoverflow.com/questions/49854646/remove-cache-after-hacked-wordpress-site

반응형