Tycoon Talk
Become a Big fish!
The number 1 forum for online business!
Post topics, ask questions, share your knowledge.
Tycoon Talk is part of Freelancer.com - find skilled workers online at a fraction of the cost.

Website and Server Administration Forum


You are currently viewing our Website and Server Administration Forum as a guest. Please register to participate.
Login



Reply
trble shooting my code (problems blocking refer sites)
Old 07-20-2011, 11:16 PM trble shooting my code (problems blocking refer sites)
Junior Talker

Posts: 4
Trades: 0
No sense being a liar, my .htaccess file leaves a lot to be desired. But hey, we all start some where.

What I'm hoping is someone can help me correct my mistakes and in particular, help me with my problems setting up blocking traffic from certain sites. (refer sites)

All help and any help is greatly appreciated and I promise to ask stupid questions just until I start asking smart ones.

Here is my file.

Order Deny,Allow
Deny from xxx.xxx.xxx.xxx
Deny from xxx.xxx.xxx.xxx
deny from xxx.xxx.xxx.xxx
<FilesMatch "^410[^.]*\.shtml$">
Allow from all
</FilesMatch>
Options All -Indexes
RewriteEngine on
RewriteCond %{HTTP:VIA} !^$ [NC,OR]
RewriteCond %{HTTP:FORWARDED} !^$ [NC,OR]
RewriteCond %{HTTP:USERAGENT_VIA} !^$ [NC,OR]
RewriteCond %{HTTP:X_FORWARDED_FOR} !^$ [NC,OR]
RewriteCond %{HTTP:PROXY_CONNECTION} !^$ [NC,OR]
RewriteCond %{HTTP:XPROXY_CONNECTION} !^$ [NC,OR]
RewriteCond %{HTTP:HTTP_PC_REMOTE_ADDR} !^$ [NC,OR]
RewriteCond %{HTTP:HTTP_CLIENT_IP} !^$ [NC,OR]
RewriteCond %{HTTP_USER_AGENT} ^ia_archiver [NC,OR]
RewriteCond %{HTTP_USER_AGENT} ^Alexa\ Toolbar [NC,OR]
RewriteCond %{HTTP_USER_AGENT} ^GoogleToolbar\ Toolbar [NC,OR]
RewriteCond %{HTTP_USER_AGENT} ^Google\ Toolbar [NC,OR]
RewriteCond %{HTTP_USER_AGENT} ^MSN\ Toolbar [NC,OR]
RewriteCond %{http_user_agent} ^alexa\ toolbar [NC,OR]
RewriteCond %{HTTP_REFERER} txxxxx\.com [NC,OR]
RewriteCond %{HTTP_REFERER} sxxxxx\.com [NC,OR]
RewriteCond %{HTTP_REFERER} axxxxx\.org [NC]
RewriteRule !403\.shtml$ - [F]

# Block image hotlinking
RewriteCond %{HTTP_REFERER} .
RewriteCond %{HTTP_REFERER} !^site \. xxx [NC]
RewriteRule \.(gif¦jpe?g)$ - [NC,F]
ErrorDocument 403 /403.shtml
Looche is offline
Reply With Quote
View Public Profile
 
 
Register now for full access!
Old 07-21-2011, 08:13 AM Re: trble shooting my code (problems blocking refer sites)
chrishirst's Avatar
Missing! presumed drunk.

Posts: 42,380
Name: Chris Hirst
Location: Blackpool. UK
Trades: 0
Why are you blocking real visitors that have the Google toolbar installed????
__________________
Chris. ->>
Please login or register to view this content. Registration is FREE
<<-

A foolish consistency is the hobgoblin of little minds
Thought for today:- Is SEO the only industry where all the cowboys are Indians?
chrishirst is online now
Reply With Quote
View Public Profile Visit chrishirst's homepage!
 
Old 07-21-2011, 11:12 AM Re: trble shooting my code (problems blocking refer sites)
Junior Talker

Posts: 4
Trades: 0
Quote:
Originally Posted by chrishirst View Post
Why are you blocking real visitors that have the Google toolbar installed????
I know, blocking anything google goes against the commonly accepted orthodoxy of webdesign. But it's for a site that is going to be "anti big brother." And if the site doesn't tow the line of anti big brother, then there will only be a million flame emails comming at me.

Now can you help me troubleshoot my code? I'm new at apache server and could really use the help.
Looche is offline
Reply With Quote
View Public Profile
 
Old 07-22-2011, 12:50 PM Re: trble shooting my code (problems blocking refer sites)
chrishirst's Avatar
Missing! presumed drunk.

Posts: 42,380
Name: Chris Hirst
Location: Blackpool. UK
Trades: 0
And blocking various toolbar enabled browsers will stop that happening, how exactly?

and what exactly is happening? Or not as the case maybe?



And why is there a files directive blocking .shtml files??
__________________
Chris. ->>
Please login or register to view this content. Registration is FREE
<<-

A foolish consistency is the hobgoblin of little minds
Thought for today:- Is SEO the only industry where all the cowboys are Indians?
chrishirst is online now
Reply With Quote
View Public Profile Visit chrishirst's homepage!
 
Old 07-22-2011, 03:38 PM Re: trble shooting my code (problems blocking refer sites)
Junior Talker

Posts: 4
Trades: 0
I'm just going to post this as a job. Because at least when I pay for something I'm not required to do a political dance about why I want something a certain way.

Therefore,
Need an .htaccess file fixed and properly commented. Payment by paypal and price negotiable. Contact me here
Looche is offline
Reply With Quote
View Public Profile
 
Old 07-24-2011, 07:19 PM Re: trble shooting my code (problems blocking refer sites)
chrishirst's Avatar
Missing! presumed drunk.

Posts: 42,380
Name: Chris Hirst
Location: Blackpool. UK
Trades: 0
Ok so is however you employ is going to need to GUESS what you actually need to do?

Because as you said your directives are not "working" so to actually make it work, whoever writes the directives is will NEED to know what you actually want to accomplih!!
__________________
Chris. ->>
Please login or register to view this content. Registration is FREE
<<-

A foolish consistency is the hobgoblin of little minds
Thought for today:- Is SEO the only industry where all the cowboys are Indians?
chrishirst is online now
Reply With Quote
View Public Profile Visit chrishirst's homepage!
 
Old 07-27-2011, 01:50 AM Re: trble shooting my code (problems blocking refer sites)
Junior Talker

Posts: 4
Trades: 0
Quote:
Originally Posted by chrishirst View Post
Ok so is however you employ is going to need to GUESS what you actually need to do?

Because as you said your directives are not "working" so to actually make it work, whoever writes the directives is will NEED to know what you actually want to accomplih!!
It's an .htaccess file.
So I guess I'm trying to block the tool bars, refer sites and proxy connections.
Looche is offline
Reply With Quote
View Public Profile
 
Old 07-27-2011, 09:10 PM Re: trble shooting my code (problems blocking refer sites)
Super Spam Talker

Posts: 880
Name: Paul W
Trades: 0
Quote:
Originally Posted by Looche View Post
It's an .htaccess file.
So I guess I'm trying to block the tool bars, refer sites and proxy connections.
Perhaps you could try being snotty with visitors you don't like, as well as forums mods trying to help you.
__________________

Please login or register to view this content. Registration is FREE
|
Please login or register to view this content. Registration is FREE


*** New:
Please login or register to view this content. Registration is FREE
PaulW is offline
Reply With Quote
View Public Profile
 
Reply     « Reply to trble shooting my code (problems blocking refer sites)
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off





   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML



Page generated in 0.62761 seconds with 12 queries