Jump to content

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


gaby

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:

htaccess-logo.png

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]
[/html]

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

Succes :pct2:

Te-ai inregistrat? Ne-ar placea sa te prezinti.

Cum pot sustine forumul?
Cumpara de la eMag folosind acest link.
--------------------
oG2BN9d.gifse1WdXd.gifQG6MtmI.gifRHYjDzD.gifG5p1wui.gif

Link to comment
Share on other sites

Sau:

# 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.

Te-ai inregistrat? Ne-ar placea sa te prezinti.

Cum pot sustine forumul?
Cumpara de la eMag folosind acest link.
--------------------
oG2BN9d.gifse1WdXd.gifQG6MtmI.gifRHYjDzD.gifG5p1wui.gif

Link to comment
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.

Guest
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.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.