Displaying 20 results from an estimated 7000 matches similar to: "HTTP_REFERER support?"
2007 Feb 22
4
Modifying Apache Conf To Block Leachers
Howdy,
I''m using Apache 2.2 + Mongrel with great success, using the sample
configs from the Mongrel site.
We have some MP3s on the site and recently someone has been stealing
them and basically leaching them from the site, linking to them from
an off-site location.
I''ve been trying to modify my Apache conf to check the referrer and
adjust accordingly as below but no
2009 Aug 27
2
Setting @request.env["HTTP_REFERER"] in an integration test
Hi.
I would like to set @request.env["HTTP_REFERER"] in an integration
test, but due to its nature, I would naturally set this value to the
previousle request url. How do I do that.
Thanks.
Jarl
2006 Aug 05
3
Apache 2.2 + Mod Proxy Balancer + Mongrel - Hot Linking Protection?
Hey guys,
Ok, basically I coded a ruby on rails CMS to manage a bunch of media
files. I am finding that a lot of people are "hot linking" to these
media files and would like to prevent this to save bandwidth. Usually
in the past, it hasn''t been a problem, I would add something like the
following to my .htaccess file
RewriteEngine on
RewriteCond %{HTTP_REFERER} !^$
2011 Jun 05
1
Cancan redirect back at AccessDenied
Hello
I have a rails 3 app and I am trying to implement the redirect back
action at access denied for cancan.
If I try this in my application_controller:
rescue_from CanCan::AccessDenied do |exception|
redirect_to :back
end
It gives the following error:
No HTTP_REFERER was set in the request to this action, so
redirect_to :back could not be called successfully. If this is a test,
make sure
2017 Mar 22
2
GSoC 2017: Letor Click Data Mining
Hi James,
> Isn't this from the query template, ie from the main web page of search
> results? (It might make sense from opensearch as well, though.)
Yes, you are right; it is the query template. The reason I said opensearch
template is that I haven't quite read all sections of the Omega docs and I'm
still in the process. Thanks for pointing that out.
I'm aiming to cover
2006 Jul 25
11
Prevent users from entering urls
How could I make it so that links on my page could link to a controllers
action, but if the user manually entered the url, it would redirect them
back to the main page? Is this possible?
Thank you,
-Ben Lisbakken
--
Posted via http://www.ruby-forum.com/.
2007 Feb 18
2
SerializationTypeMismatch in Production Mode
In production mode, I keep getting this error the 2nd time it loads a
page with a serialized attribute:
ActiveRecord::SerializationTypeMismatch (answers_container was
supposed to be a Array, but was a NilClass):
/vendor/rails/activerecord/lib/active_record/base.rb:1964:in
`unserialize_attribute''
In development, it works fine. In fact, if I set to false
config.cache_classes in
2006 Jun 28
2
Saving and reproducing a POST request.
Hi
I have an action which saves the originating resource from which it
was called, and returns to it later. This is done by setting:
session[:return_to] = request.referer
...
redirect_to(session[:return_to])
Which works great for GET resources. The problem is that POST
variables aren''t kept in request.referer, so this method fails when
the originating resource is a a POST.
2006 Mar 09
3
redirect_to :back question
Hi!
How to use this? I can declare it only inside a controller, so i tried
to do add this to application controller:
def back
redirect_to :back
end
so i could call in all my views
link_to ''back'', :controller => ''application'', :action => ''back''
but it doesn''t work - there are no errors, but i''m still on the same
2006 Jul 10
4
Test Mongrel 0.3.13.4 Please
Hey Folks,
There''s a nasty little bug in 0.3.13.3 when running in development mode
which could cause all sorts of problems.
Please grab the pre-release of 0.3.13.4 and tell me if it works for you:
gem install mongrel --source=http://mongrel.rubyforge.org/releases/
Thanks!
--
Zed A. Shaw
http://www.zedshaw.com/
http://mongrel.rubyforge.org/
http://www.railsmachine.com/ -- Need
2006 Apr 18
6
Best Practice for Returning to Calling Page?
I have a partial, it''s a shopping cart display, it''s designed to appear
on several different pages of my site.
One of the buttons on the shopping cart empties the cart, and then I
want the calling page to redisplay.
In other words, the cart controller needs to return the visitor to the
same page -- however since the cart could appear on any given page, this
has to be
2006 Jan 17
1
Referer
Hello forum,
i currently try to learn ruby on rails. my first little project will be
a link blog.
i try to get the referer variable - but i don''t know to get it.
def index
@url = request.env["?"]
render :text => "The domain from which you come from is #{@url}"
end
Or do I should use the Net::HTTP?
-jens
--
Posted via http://www.ruby-forum.com/.
2006 May 26
1
Redirecting user on object.save failures
Hi,
I''m trying to create a chatboard (I call it my BoomBox, each post is
called a "boom") which appears on every page of a weblog I''m building. I
have a scaffold-built controller called Boom, and the form to post to
the BoomBox is written into my default layout. So, the form can be
viewed from several of my other controllers, in most of their actions.
The form
2006 Jan 30
10
How do I get the the full URL of an incoming request
Hey,
Is is possible to get the full URL
(''http://www.sender-domain.com/links/list.html'')
from where a user was sent to my site
(www.my-domain.com/controller/action) e.g. by clicking on a link? (I
read about something called a ''request'' object, I don''t know what it is
or does, is that what I''m looking for?
I''m very new to Rails
2006 Jun 28
8
How to obtain clients IP adress
Is it possible to obtain clients adress in ruby on rails?
by
TheR
--
Posted via http://www.ruby-forum.com/.
2012 May 25
4
PCI/DSS compliance on CentOS
I have a client project to implement PCI/DSS compliance.
The PCI/DSS auditor has stipulated that the web server, application
middleware (tomcat), the db server have to be on different systems.
In addition the auditor has also stipulated that there be a NTP
server, a "patch" server,
The Host OS on all of the above nodes will be CentOS 6.2.
Below is a list of things that would be
2007 May 29
1
Headers munged into RAW_POST_DATA
Hi,
we''re seeing a really weird problem in our production environment.
"Connection: Keep-Alive\r\n" is being pre-pended to the
RAW_POST_DATA, which makes requests error out. This bug is seen
infrequently and *seems* to be browser-related, although I can''t
reproduce it using the browser reported in HTTP_USER_AGENT.
Set up is a hardware load balancer (NetScaler)
2004 Aug 06
3
Re: [icecast-dev] Hot Topic: Icecast in Macromedia Flash
Hi,
<p>I moved this to icecast@, since none of these are icecast development
related questions and issues.
Macsym wrote:
> I didn't know so many people in the Icecast-Dev list were running Linux PPC!
Oh well, I'm neither a developer nor running Linux PPC. ;)
> Anyway, I understand that you guys don't have the time to help me with that
> because you wouldn't be
2006 Feb 03
6
Go back to previous action
Hello all!
I have two views (list_1 and list_2) that show a list of users in two
different ways. In the views for these actions there is a link to edit a
specific user properties (edit_user). That works fine, except that when
I change the user I want to go back to the view that originated the
request and not to the default list (list_1).
Can anyone help me?
Best regards,
Hugo
--
Posted via
2004 Aug 24
1
error when unsubscribe (PR#7198)
Full_Name: Huan Huang
Version: 1.9.1
OS: Win NT
Submission from: (NULL) (155.140.122.227)
Traceback:
Traceback (most recent call last):
File "/scratch/local/app/mailman-sfs/2.1.5/scripts/driver", line 87, in
run_main
main()
File "/scratch/local/app/mailman-sfs/2.1.5/Mailman/Cgi/options.py", line 91,
in main
language = cgidata.getvalue('language')
File