| Author |
Message |
sharphead
Joined: 17 Nov 2006 Posts: 23 Rank: 4 Location: Winnipeg, MB
|
Posted: 20 Nov 2006 07:17 Post subject: Stop cheater hits from bad trades - .htaccess |
|
|
Hey everyone,
Well you've found a cheater from Protect-X and they are sending you bad traffic, first thing is to disable the trade in your trade script. Once that's done, you'll need to do one more step to shut down that trade for good and that's adding them into your .htaccess file to tell the server to display a 403 page to everyone coming from that trade. Protect-X wont see hits coming from sites listed here because the server redirects them to a Forbidden Page.
Here is the syntax:
| Code: | RewriteEngine on
RewriteCond %{HTTP_REFERER} ^http(s)?://(www\.)?cheatertgp.com.*$ [NC,OR]
RewriteCond %{HTTP_REFERER} ^http(s)?://(www\.)?badhits.com.*$ [NC,OR]
RewriteCond %{HTTP_REFERER} ^http(s)?://(www\.)?botworld.com.*$ [NC]
RewriteRule .* - [F,L] |
Just add a line for every referrer you want to effectively kill with the lines [NC,OR] at the end until your done. Essentially it means anything from from http or https, with or without www and domain.com / and domain.com forbid serving pages to if they are the referrer listed.
Hope that helps, it has helped me make sure the trades that are cheating me are dead and that NONE of my good trades see any traffic from those bad trades.
Enjoy. |
|
| Back to top |
|
artgps
Joined: 01 Nov 2006 Posts: 5
|
Posted: 24 Nov 2006 21:19 Post subject: Better Method |
|
|
mod_rewrite is process intensive due to regex... I would recommend that you use mod_setenv instead.
_________________ AKA nation-x |
|
| Back to top |
|
StickyGreen

Joined: 10 Nov 2006 Posts: 146 Rank: 24
|
|
| Back to top |
|
thegalleriesxxx
Joined: 11 Nov 2006 Posts: 4
|
Posted: 26 Nov 2006 21:06 Post subject: Re: Better Method |
|
|
| artgps wrote: | mod_rewrite is process intensive due to regex... I would recommend that you use mod_setenv instead.
|
Hello,
It means what to all listed domains the access is forbidden? |
|
| Back to top |
|
long
Joined: 17 Nov 2006 Posts: 1
|
Posted: 06 Dec 2006 16:02 Post subject: |
|
|
Bad traffic I send on disney.com
No nothing more beautiful than childhood!  |
|
| Back to top |
|
frozenjag
Joined: 09 Nov 2006 Posts: 37 Rank: 26
|
Posted: 07 Dec 2006 03:15 Post subject: |
|
|
so i just create a .htaccess file with that code in it, upload it to my httpdocs folder (which has my index.php file) and im good to go? I dont have to put any code in my html to tell it to check this file first? _________________ <a>
<img>
</a><br>
I promote MIC, u should too! ;] |
|
| Back to top |
|
Protect-X Support

Joined: 30 Oct 2006 Posts: 934 Rank: 35
|
Posted: 07 Dec 2006 08:53 Post subject: |
|
|
| frozenjag wrote: | | so i just create a .htaccess file with that code in it, upload it to my httpdocs folder (which has my index.php file) and im good to go? I dont have to put any code in my html to tell it to check this file first? |
yes, you right _________________ Free A-B-C-D Hard Links Exchange Automatic System:
http://www.protect-x.com/index.php?go=shardlinks
Visit other Protect-X sections:
Find/Add NEW SPONSORS:
http://www.protect-x.com/index.php?go=findsponsors |
|
| Back to top |
|
sakrina

Joined: 23 Dec 2006 Posts: 22
|
Posted: 24 Dec 2006 18:51 Post subject: |
|
|
or like so
<Files 403.html>
order allow,deny
allow from all
</Files>
deny from 66.132.143.91
deny from 84.184.166.10
deny from 210.203.214.162
deny from 212.152.228.243
deny from 84.65.101.113
deny from 213.239.77.159
deny from 83.233.132.235
deny from 82.205.233.4
deny from 82.179.206.139
deny from 212.152.229.071
deny from 64.246.18.25
deny from 216.255.178.0
deny from 82.179.73.139
--------------
then in the file 403.html you can redirect them to another site or make other funny things  |
|
| Back to top |
|
kaosoul

Joined: 03 Jan 2007 Posts: 44 Rank: 3 Location: PA
|
Posted: 08 Jan 2007 06:24 Post subject: |
|
|
How would I block a range of IP's from 74.6.0.0 through 74.6.255.255 without adding each ip address one by one? _________________ [url=http://japanesenudebeauties.com/webmasters.htm]Asian Hardlink Trade[/url]
[url=http://www.atcihosting.com/?ref_id=1018][img:90d5d69fcf]http://www.sexocalypse.com/atcihosting.gif[/img:90d5d69fcf][/url] |
|
| Back to top |
|
sakrina

Joined: 23 Dec 2006 Posts: 22
|
Posted: 08 Jan 2007 07:57 Post subject: |
|
|
like so
74.6.0.0
blocks hole 74.6 |
|
| Back to top |
|
kaosoul

Joined: 03 Jan 2007 Posts: 44 Rank: 3 Location: PA
|
Posted: 08 Jan 2007 11:28 Post subject: |
|
|
| sakrina wrote: | like so
74.6.0.0
blocks hole 74.6 |
Ok Thanks! Sounds easy enough! _________________ [url=http://japanesenudebeauties.com/webmasters.htm]Asian Hardlink Trade[/url]
[url=http://www.atcihosting.com/?ref_id=1018][img:90d5d69fcf]http://www.sexocalypse.com/atcihosting.gif[/img:90d5d69fcf][/url] |
|
| Back to top |
|
dbs101
Joined: 10 Jan 2007 Posts: 52
|
Posted: 02 Feb 2007 04:07 Post subject: Re: Better Method |
|
|
| artgps wrote: | mod_rewrite is process intensive due to regex... I would recommend that you use mod_setenv instead.
|
just paste that in my htaccess ? |
|
| Back to top |
|
Protect-X Support

Joined: 30 Oct 2006 Posts: 934 Rank: 35
|
|
| Back to top |
|
snakegr
Joined: 28 Jan 2007 Posts: 6
|
Posted: 02 Feb 2007 13:34 Post subject: |
|
|
Ok...everything is done
How can we check if our .htaccess file works? |
|
| Back to top |
|
dbs101
Joined: 10 Jan 2007 Posts: 52
|
Posted: 02 Feb 2007 13:37 Post subject: |
|
|
mine works perfect.
but i dunno if this is a problem my side or if this is ment to happen.
i can edit the .htaccess twice if i try to edit it a 3rd time the file becomes blank/empty so i just repaste it and save as .htaccess |
|
| Back to top |
|
|
|
|
|
|
|
|
|