Menu

Your site redirects to a casino: how to find and remove the injected code
📰

Your site redirects to a casino: how to find and remove the injected code

DEV Community: php·Artem (tema.name)·3 days ago
#6T4Fouse
#devto#dev#files#clean#article
Reading 0:00
15s threshold

A client writes: "People say my site opens a casino. I open it and everything is fine." This is the most common hack I clean up on WordPress and Joomla sites. Here is how it works and how to remove it properly.

Why the owner does not see it

The injected code is selective. Typical conditions:

the visitor came from Google or another search engine

the visitor is on a phone

it is the first visit from this IP or without a cookie

the visitor is not logged in

The owner types the address directly, is logged in and has visited before, so the site looks normal.…

Continue reading — create a free account

Join HashtagPLUS to read full articles, follow hashtags, vote, and join the conversation.