$domains = @(
“funmihan.com”,
“1000toman.com”,
“miadgah.com”,
“cdcoloop.com”,
“bia2fm.com”,
“ariapix.org”
)
# Current directory
$directory = Get-Location
# Iterate through each file in the current directory
Get-ChildItem -Path $directory -Recurse -File | ForEach-Object
$file = $_.FullName
# Read the content of each file
$content = Get-Content -Path $file -Raw
# Check for each domain in the content (case-insensitive)
foreach ($domain in $domains)
if ($content -match [regex]::Escape($domain))
# Create a folder with the domain name if it doesn’t exist
$domainFolder = Join-Path $directory $domain
if (!(Test-Path $domainFolder))
New-Item -Path $domainFolder -ItemType Directory
# Move the file to the folder named after the domain
Move-Item -Path $file -Destination $domainFolder -Force
# If a file contains multiple domains, stop checking further domains for this file
break
