Sunucumuza ssh ile giriş yaptık. Yola gidelim:
cd /etc/nginx
Daha sonra gerekli dosyayı oluşturalım.
nano referral-spam.conf
ve içerisine şu kodları ekleyelim:
map $http_referer $bad_referer {
default 0;
"~*0n\-line\.tv" 1;
"~*100dollars\-seo\.com" 1;
"~*12masterov\.com" 1;
"~*1pamm\.ru" 1;
"~*1webmaster\.ml" 1;
"~*45tahunkhongguan\.com" 1;
"~*4webmasters\.org" 1;
"~*5forex\.ru" 1;
"~*76brighton\.com" 1;
"~*7makemoneyonline\.com" 1;
"~*7zap\.com" 1;
"~*abovetherivernc\.com" 1;
"~*acads\.net" 1;
"~*acunetix\-referrer\.com" 1;
"~*adcash\.com" 1;
"~*addons\.mozilla\.org/en\-US/firefox/addon/ilovevitaly" 1;
"~*adelly\.bg" 1;
"~*adf\.ly" 1;
"~*adspart\.com" 1;
"~*adventureparkcostarica\.com" 1;
"~*adviceforum\.info" 1;
"~*advokateg\.co" 1;
"~*advokateg\.com" 1;
"~*advokateg\.ru" 1;
"~*affordablewebsitesandmobileapps\.com" 1;
"~*afora\.ru" 1;
"~*akuhni\.by" 1;
"~*alessandraleone\.com" 1;
"~*alfa9\.com" 1;
"~*alibestsale\.com" 1;
"~*allknow\.info" 1;
"~*allnews\.md" 1;
"~*allwomen\.info" 1;
"~*alpharma\.net" 1;
"~*altermix\.ua" 1;
"~*amanda\-****\.ga" 1;
"~*amt\-k\.ru" 1;
"~*anapa\-inns\.ru" 1;
"~*android\-style\.com" 1;
"~*anticrawler\.org" 1;
"~*aosheng\-tech\.com" 1;
"~*arendakvartir\.kz" 1;
"~*arkkivoltti\.net" 1;
"~*artparquet\.ru" 1;
"~*aruplighting\.com" 1;
"~*audiobangout\.com" 1;
"~*autobrennero\.it" 1;
"~*autovideobroadcast\.com" 1;
"~*aviva\-limoux\.com" 1;
"~*avkzarabotok\.com" 1;
"~*avkzarabotok\.info" 1;
"~*awency\.com" 1;
"~*azartclub\.org" 1;
"~*bablonow\.ru" 1;
"~*backgroundpictures\.net" 1;
"~*baixar\-musicas\-gratis\.com" 1;
"~*baladur\.ru" 1;
"~*balitouroffice\.com" 1;
"~*bard\-real\.com\.ua" 1;
"~*bausparen\.bz\.it" 1;
"~*bbtec\.net" 1;
"~*best\-seo\-offer\.com" 1;
"~*best\-seo\-software\.xyz" 1;
"~*best\-seo\-solution\.com" 1;
"~*bestmobilityscooterstoday\.com" 1;
"~*bestwebsitesawards\.com" 1;
"~*bif\-ru\.info" 1;
"~*biglistofwebsites\.com" 1;
"~*billiard\-classic\.com\.ua" 1;
"~*bioca\.org" 1;
"~*bizru\.info" 1;
"~*bkns\.vn" 1;
"~*black\-friday\.ga" 1;
"~*blackhatworth\.com" 1;
"~*blackle\.com" 1;
"~*blogtotal\.de" 1;
"~*blue\-square\.biz" 1;
"~*bluerobot\.info" 1;
"~*boleznikogi\.com" 1;
"~*bookmark4you\.biz" 1;
"~*bookmark4you\.com" 1;
"~*boost\-my\-site\.com" 1;
"~*brakehawk\.com" 1;
"~*break\-the\-chains\.com" 1;
"~*bristolhostel\.com" 1;
"~*bristolhotel\.com" 1;
"~*bristolhotel\.com\.ua" 1;
"~*brk\-rti\.ru" 1;
"~*brothers\-smaller\.ru" 1;
"~*budmavtomatika\.com\.ua" 1;
"~*burger\-imperia\.com" 1;
"~*buttons\-for\-website\.com" 1;
"~*buttons\-for\-your\-website\.com" 1;
"~*buy\-cheap\-online\.info" 1;
"~*buy\-forum\.ru" 1;
"~*buyantiviralwp\.com" 1;
"~*buypharmacydrug\.com" 1;
"~*bycontext\.com" 1;
"~*callejondelpozo\.es" 1;
"~*cardiosport\.com\.ua" 1;
"~*cartechnic\.ru" 1;
"~*cbcseward\.com" 1;
"~*cbox\.ws" 1;
"~*cenokos\.ru" 1;
"~*cenoval\.ru" 1;
"~*cezartabac\.ro" 1;
"~*cherrypointplace\.ca" 1;
"~*cherubinimobili\.it" 1;
"~*chinese\-amezon\.com" 1;
"~*ci\.ua" 1;
"~*cityadspix\.com" 1;
"~*civilwartheater\.com" 1;
"~*clicksor\.com" 1;
"~*clmforexeu\.com" 1;
"~*coderstate\.com" 1;
"~*codysbbq\.com" 1;
"~*conciergegroup\.org" 1;
"~*connectikastudio\.com" 1;
"~*constantaservice\.net" 1;
"~*contextualyield\.com" 1;
"~*copyrightclaims\.org" 1;
"~*covadhosting\.biz" 1;
"~*cubook\.supernew\.org" 1;
"~*customsua\.com\.ua" 1;
"~*cyber\-monday\.ga" 1;
"~*cyprusbuyproperties\.com" 1;
"~*dailyrank\.net" 1;
"~*darodar\.com" 1;
"~*dbutton\.net" 1;
"~*delfin\-aqua\.com\.ua" 1;
"~*demenageur\.com" 1;
"~*depositfiles\-****\.com" 1;
"~*descargar\-musica\-gratis\.net" 1;
"~*detskie\-konstruktory\.ru" 1;
"~*dipstar\.org" 1;
"~*directrev\.com" 1;
"~*djekxa\.ru" 1;
"~*dojki\-hd\.com" 1;
"~*doktoronline\.no" 1;
"~*domination\.ml" 1;
"~*doska\-vsem\.ru" 1;
"~*dostavka\-v\-krym\.com" 1;
"~*drupa\.com" 1;
"~*dvr\.biz\.ua" 1;
"~*e\-buyeasy\.com" 1;
"~*e\-kwiaciarz\.pl" 1;
"~*e2click\.com" 1;
"~*ecomp3\.ru" 1;
"~*econom\.co" 1;
"~*edakgfvwql\.ru" 1;
"~*edelstahlschornstein\-123\.de" 1;
"~*egovaleo\.it" 1;
"~*ekto\.ee" 1;
"~*elitesportsadvisor\.com" 1;
"~*elmifarhangi\.com" 1;
"~*embedle\.com" 1;
"~*eredijovon\.com" 1;
"~*erot\.co" 1;
"~*escort\-russian\.com" 1;
"~*este\-line\.com\.ua" 1;
"~*euromasterclass\.ru" 1;
"~*europages\.com\.ru" 1;
"~*eurosamodelki\.ru" 1;
"~*event\-tracking\.com" 1;
"~*extener\.com" 1;
"~*extremez\.net" 1;
"~*family1st\.ca" 1;
"~*fast\-wordpress\-start\.com" 1;
"~*fbdownloader\.com" 1;
"~*fbfreegifts\.com" 1;
"~*feedouble\.com" 1;
"~*feedouble\.net" 1;
"~*ferieboligkbh\.dk" 1;
"~*filmetricsasia\.com" 1;
"~*fitness\-video\.net" 1;
"~*fiverr\.com" 1;
"~*floating\-share\-buttons\.com" 1;
"~*forex\-procto\.ru" 1;
"~*forsex\.info" 1;
"~*forum69\.info" 1;
"~*foxtechfpv\.com" 1;
"~*free\-floating\-buttons\.com" 1;
"~*free\-share\-buttons\.com" 1;
"~*free\-social\-buttons\.com" 1;
"~*freeseedsonline\.com" 1;
"~*freewhatsappload\.com" 1;
"~*fsalas\.com" 1;
"~*ftns\.ru" 1;
"~*fungirlsgames\.net" 1;
"~*funnypica\.com" 1;
"~*general****\.org" 1;
"~*germes\-trans\.com" 1;
"~*get\-free\-social\-traffic\.com" 1;
"~*get\-free\-traffic\-now\.com" 1;
"~*get\-your\-social\-buttons\.info" 1;
"~*getprismatic\.com" 1;
"~*girl****\.ru" 1;
"~*gkvector\.ru" 1;
"~*glavprofit\.ru" 1;
"~*gobongo\.info" 1;
"~*goodprotein\.ru" 1;
"~*googlemare\.com" 1;
"~*googlsucks\.com" 1;
"~*gototal\.co\.nz" 1;
"~*guardlink\.com" 1;
"~*guardlink\.org" 1;
"~*h2monline\.com" 1;
"~*handicapvantoday\.com" 1;
"~*hazardky\.net" 1;
"~*hol\.es" 1;
"~*hongfanji\.com" 1;
"~*hostcritique\.com" 1;
"~*hosting\-tracker\.com" 1;
"~*hostingclub\.lk" 1;
"~*houseofrose\.com" 1;
"~*how\-to\-earn\-quick\-money\.com" 1;
"~*howopen\.ru" 1;
"~*howtostopreferralspam\.eu" 1;
"~*hulfingtonpost\.com" 1;
"~*humanorightswatch\.org" 1;
"~*hundejo\.com" 1;
"~*hvd\-store\.com" 1;
"~*ico\.re" 1;
"~*igru\-xbox\.net" 1;
"~*iloveitaly\.ro" 1;
"~*iloveitaly\.ru" 1;
"~*ilovevitaly\.co" 1;
"~*ilovevitaly\.com" 1;
"~*ilovevitaly\.info" 1;
"~*ilovevitaly\.org" 1;
"~*ilovevitaly\.ro" 1;
"~*ilovevitaly\.ru" 1;
"~*iminent\.com" 1;
"~*imperiafilm\.ru" 1;
"~*inboxdollars\.com" 1;
"~*intermesh\.net" 1;
"~*investpamm\.ru" 1;
"~*invivo\.hu" 1;
"~*iskalko\.ru" 1;
"~*ispaniya\-costa\-blanca\.ru" 1;
"~*istanbulit\.com" 1;
"~*it\-max\.com\.ua" 1;
"~*itronics\.ca" 1;
"~*itsdp3\.com" 1;
"~*jasonpartington\.com" 1;
"~*jazzstyle4us\.com" 1;
"~*jjbabskoe\.ru" 1;
"~*joinandplay\.me" 1;
"~*joingames\.org" 1;
"~*justprofit\.xyz" 1;
"~*jwss\.cc" 1;
"~*kabbalah\-red\-bracelets\.com" 1;
"~*kambasoft\.com" 1;
"~*kazrent\.com" 1;
"~*kino\-fun\.ru" 1;
"~*kino\-key\.info" 1;
"~*kinopolet\.net" 1;
"~*kiwe\-analytics\.com" 1;
"~*knigonosha\.net" 1;
"~*konkursov\.net" 1;
"~*kosova\.de" 1;
"~*laxdrills\.com" 1;
"~*leadwayau\.com" 1;
"~*littleberry\.ru" 1;
"~*livefixer\.com" 1;
"~*lmrauction\.com" 1;
"~*lol\-smurfs\.com" 1;
"~*lombia\.co" 1;
"~*lombia\.com" 1;
"~*lsex\.xyz" 1;
"~*lumb\.co" 1;
"~*luxup\.ru" 1;
"~*m1media\.net" 1;
"~*magento\-crew\.net" 1;
"~*mainlinehobby\.net" 1;
"~*makemoneyonline\.com" 1;
"~*malls\.com" 1;
"~*manualterap\.roleforum\.ru" 1;
"~*maridan\.com\.au" 1;
"~*masterseek\.com" 1;
"~*maxthon\.com" 1;
"~*mebelcomplekt\.ru" 1;
"~*mebeldekor\.com\.au" 1;
"~*med\-zdorovie\.com\.au" 1;
"~*medi\-fitt\.hu" 1;
"~*medicovi\.com" 1;
"~*medispainstitute\.com\.au" 1;
"~*meendo\-free\-traffic\.ga" 1;
"~*mericanmopedstore\.com" 1;
"~*micasainvest\.com" 1;
"~*microsearch\.ru" 1;
"~*minegam\.com" 1;
"~*mini\.7zap\.com" 1;
"~*mir\-betting\.ru" 1;
"~*mirobuvi\.com\.au" 1;
"~*mirtorrent\.net" 1;
"~*mobilemedia\.md" 1;
"~*motion\-interactive\.com" 1;
"~*mountainstream\.ms" 1;
"~*moyakuhnia\.ru" 1;
"~*mpftpupload\.com" 1;
"~*mrmoneymustache\.com" 1;
"~*msk\.afora\.ru" 1;
"~*muscle\-factory\.com\.au" 1;
"~*musicas\.baixar\-musicas\-gratis\.com" 1;
"~*musicprojectfoundation\.com" 1;
"~*mycaf\.it" 1;
"~*myftpupload\.com" 1;
"~*myprintscreen\.com" 1;
"~*nate\.com" 1;
"~*nextconseil\.com" 1;
"~*niki\-mlt\.ru" 1;
"~*notaria\-desalas\.com" 1;
"~*noumeda\.com" 1;
"~*novosti\-hi\-tech\.ru" 1;
"~*nullrefer\.com" 1;
"~*o\-o\-6\-o\-o\.com" 1;
"~*o\-o\-6\-o\-o\.ru" 1;
"~*o\-o\-8\-o\-o\.com" 1;
"~*o\-o\-8\-o\-o\.ru" 1;
"~*offers\.bycontext\.com" 1;
"~*online\-hit\.info" 1;
"~*onlywoman\.org" 1;
"~*ooo\-olni\.ru" 1;
"~*openfrost\.com" 1;
"~*openmediasoft\.com" 1;
"~*osoznanie\-narkotikam\.net" 1;
"~*ozas\.net" 1;
"~*palvira\.com\.au" 1;
"~*paparazzistudios\.com\.au" 1;
"~*pensplan\.com" 1;
"~*pensplan4u\.com" 1;
"~*petrovka\-online\.com" 1;
"~*photokitchendesign\.com" 1;
"~*pizza\-imperia\.com" 1;
"~*pizza\-tycoon\.com" 1;
"~*pochemychka\.net" 1;
"~*poisk\-zakona\.ru" 1;
"~*pops\.foundation" 1;
"~*****hub\-forum\.ga" 1;
"~*****hub\-forum\.uni\.me" 1;
"~*****hub\-ru\.com" 1;
"~*****hubforum\.tk" 1;
"~*****oforadult\.com" 1;
"~*portnoff\.od\.au" 1;
"~*powitania\.pl" 1;
"~*pozdravleniya\-c\.ru" 1;
"~*priceg\.com" 1;
"~*pricheski\-video\.com" 1;
"~*princeadvantagesales\.com" 1;
"~*printingpeach\.com" 1;
"~*prlog\.ru" 1;
"~*producm\.ru" 1;
"~*prodvigator\.au" 1;
"~*prohoster\.info" 1;
"~*prointer\.net\.au" 1;
"~*promoforum\.ru" 1;
"~*proposal\-engine\.com" 1;
"~*psa48\.ru" 1;
"~*putitin\.me" 1;
"~*pyrodesigns\.com\.au" 1;
"~*qitt\.ru" 1;
"~*qualitymarketzone\.com" 1;
"~*quit\-smoking\.ga" 1;
"~*qwesa\.ru" 1;
"~*rankings\-analytics\.com" 1;
"~*rankscanner\.com" 1;
"~*ranksignals\.com" 1;
"~*ranksonic\.info" 1;
"~*ranksonic\.net" 1;
"~*ranksonic\.org" 1;
"~*rapidgator\-****\.ga" 1;
"~*rcb101\.ru" 1;
"~*realting\-moscow\.ru" 1;
"~*rednise\.com" 1;
"~*rentalmaty\.kz" 1;
"~*research\.ifmo\.ru" 1;
"~*resellerclub\.com" 1;
"~*retreatia\.com" 1;
"~*reversing\.cc" 1;
"~*rightenergysolutions\.com\.au" 1;
"~*risparmiocasa\.bz\.it" 1;
"~*rospromtest\.ru" 1;
"~*rusexy\.xyz" 1;
"~*sady\-urala\.ru" 1;
"~*salutmontreal\.com" 1;
"~*sanjosestartups\.com" 1;
"~*santasgift\.ml" 1;
"~*savetubevideo\.com" 1;
"~*screentoolkit\.com" 1;
"~*scripted\.com" 1;
"~*search\-error\.com" 1;
"~*search\-helper\.ru" 1;
"~*semalt\.com" 1;
"~*semaltmedia\.com" 1;
"~*seo\-platform\.com" 1;
"~*seo\-smm\.kz" 1;
"~*seoanalyses\.com" 1;
"~*seoexperimenty\.ru" 1;
"~*seokicks\.de" 1;
"~*seopub\.net" 1;
"~*setioweb\.com" 1;
"~*sexyali\.com" 1;
"~*sharebutton\.net" 1;
"~*sharebutton\.to" 1;
"~*sharemyfile\.ru" 1;
"~*shop\.xz618\.com" 1;
"~*sibecoprom\.ru" 1;
"~*simple\-share\-buttons\.com" 1;
"~*siteripz\.net" 1;
"~*sitevaluation\.com" 1;
"~*sitevaluation\.org" 1;
"~*sklad\-24\.ru" 1;
"~*sledstvie\-veli\.net" 1;
"~*slftsdybbg\.ru" 1;
"~*slkrm\.ru" 1;
"~*smailik\.org" 1;
"~*snip\.to" 1;
"~*soaksoak\.ru" 1;
"~*social\-buttons\.com" 1;
"~*socialseet\.ru" 1;
"~*softomix\.com" 1;
"~*softomix\.net" 1;
"~*softomix\.org" 1;
"~*softomix\.ru" 1;
"~*sohoindia\.net" 1;
"~*solnplast\.ru" 1;
"~*sonyelektronik\.com" 1;
"~*sosdepotdebilan\.com" 1;
"~*soundfrost\.org" 1;
"~*spb\.afora\.ru" 1;
"~*spravka130\.ru" 1;
"~*srecorder\.com" 1;
"~*steame\.ru" 1;
"~*streha\-metalko\.si" 1;
"~*success\-seo\.com" 1;
"~*superiends\.org" 1;
"~*supernew\.org" 1;
"~*superpages\.com" 1;
"~*susanholtphotography\.com" 1;
"~*taihouse\.ru" 1;
"~*tastyfoodideas\.com" 1;
"~*tattooha\.com" 1;
"~*teastory\.co" 1;
"~*tedxrj\.com" 1;
"~*thecoral\.com\.br" 1;
"~*theguardlan\.com" 1;
"~*thepokertimer\.com" 1;
"~*tomck\.com" 1;
"~*top1\-seo\-service\.com" 1;
"~*torture\.ml" 1;
"~*touchmods\.fr" 1;
"~*traffic2cash\.org" 1;
"~*traffic2money\.com" 1;
"~*trafficmonetize\.org" 1;
"~*trafficmonetizer\.org" 1;
"~*traffictomoney\.com" 1;
"~*trion\.od\.au" 1;
"~*trk\-4\.net" 1;
"~*twincitiescarservice\.com" 1;
"~*uasb\.ru" 1;
"~*uni\.me" 1;
"~*urlopener\.blogspot\.com\.au" 1;
"~*uzungil\.com" 1;
"~*vapmedia\.org" 1;
"~*video\-\-production\.com" 1;
"~*video\-woman\.com" 1;
"~*videofrost\.com" 1;
"~*videofrost\.net" 1;
"~*videos\-for\-your\-business\.com" 1;
"~*viel\.su" 1;
"~*viktoria\-center\.ru" 1;
"~*vodaodessa\.com" 1;
"~*vodkoved\.ru" 1;
"~*web\-betting\.ru" 1;
"~*webmaster\-traffic\.com" 1;
"~*webmonetizer\.net" 1;
"~*website\-errors\-scanner\.com" 1;
"~*websites\-reviews\.com" 1;
"~*websocial\.me" 1;
"~*williamrobsonproperty\.com" 1;
"~*wmasterlead\.com" 1;
"~*wordpress\-crew\.net" 1;
"~*work\-from\-home\-earn\-money\-online\.com" 1;
"~*xn\-\-80adgcaax6acohn6r\.xn\-\-p1ai" 1;
"~*xn\-\-c1acygb\.xn\-\-p1ai" 1;
"~*xn\-\-q1a\.xn\-\-b1aube0e\.xn\-\-c1acygb\.xn\-\-p1ai" 1;
"~*ykecwqlixx\.ru" 1;
"~*you****\-forum\.ga" 1;
"~*you****\-forum\.uni\.me" 1;
"~*you****\-ru\.com" 1;
"~*yourserverisdown\.com" 1;
"~*youtubedownload\.org" 1;
"~*yurgorod\.ru" 1;
"~*zastroyka\.org" 1;
"~*zazagames\.org" 1;
"~*zverokruh\-shop\.cz" 1;
}
Kaydedip çıkalım. Şimdi bunu Nginx ayarlarından çağıracağız.
nano /etc/nginx/nginx.conf
O kısımda http satırını görüceksiniz. Http kodunun içerisine şu kodu ekleyin. (doğru yere eklediğinizden emin olun.)
include referral-spam.conf;
Yani http { ile başlayan kod kapanmadan bir kısma ekleyiniz. Başka satırı bozmadan eklemeyi yapın.
Kaydedip çıkın. Şimdi ise bir dosya daha oluşturacağız:
Aşağıdaki kodu da sitenin nginx ayarları bulunan dosyaları ekleyeceksin. Benim ayarlarım şu dosyada bulunuyor örneğin: /etc/nginx/sites-available/siteadi.com
nano /etc/nginx/sites-available/siteadi.com
Aşağıdaki kodu açılan yerin altına ekliyorum:
server {
if ($bad_referer) {
return 444;
}
}
Şimdi nginx’i yeniden başlatalım:
service nginx restart
Kaynak: Nginx sunucuda spam referans girişlerden kurtulmak