Jump to content
Sign in to follow this  

Blocare Referrer-Url - Refreshuri Automate Venite De Pe Un Alt Site

Recommended Posts

In cazul in care aveti un website, si sunteti "atacati" prin intermediul unui alt site ce provoaca refresh-uri automate, solutia este blocarea referrer-ului (site-ului ce provoaca afisarile automate).

Puteti face asta prin folosirea tutorialului de aici:


Sau, in cazul in care metoda de mai sus, nu merge, va trebui sa folositi urmatorul cod (pentru blocarea referrer-ului):

RewriteEngine on
# Options +FollowSymlinks
RewriteCond %{HTTP_REFERER} site-ul-pe-care-vreti-sa-l-blocati.ro [NC]
RewriteRule .* - [F]

[b]P.S:[/b] Codul trebuie pus in fisierul [b][color="#FF0000"].htaccess[/color][/b]

Succes :pct2:

Share this post

Link to post
Share on other sites


# definiti variabila spam_ref
SetEnvIfNoCase Referer "^http://(www.)?site-refferer.com" spam_ref=1
SetEnvIfNoCase Referer "^http://(www.)?alt-site.com" spam_ref=1
SetEnvIfNoCase Referer "^cuvant-inclus-in-adresa-url" spam_ref=1
# blocheaza tot ce este setat in spam_ref
<FilesMatch "(.*)">
Order Allow,Deny
Allow from all
Deny from env=spam_ref
</FilesMatch>[/code] [color="#008000"][u][b]Informatii:[/b][/u][/color] "[b]#[/b]" adaugat in fata unei linii in [color="#FF8C00"].htaccess[/color], anuleaza linia respectiva. Poate fi considerata o linie cu caracter informativ.
[code]SetEnvIfNoCase Referer "^cuvant-inclus-in-adresa-url" spam_ref=1
Aceasta liniie blocheaza toate site-urile care contin in adresa URL, cuvantul setat de dvs. De exemplu:
SetEnvIfNoCase Referer "^adult" spam_ref=1

Linia de mai sus va bloca toate site-urile referrer care contin "adult" in URL. De exemplu: adult123.com, adult.ro, 54234adult.net.

Share this post

Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Sign in to follow this  

  • Recently Browsing   0 members

    No registered users viewing this page.

  • Create New...