logo
Apache Lounge
Webmasters

 

About Forum Index Downloads Search Register Log in RSS X


Keep Server Online

If you find the Apache Lounge, the downloads and overall help useful, please express your satisfaction with a donation.

or

Bitcoin

A donation makes a contribution towards the costs, the time and effort that's going in this site and building.

Thank You! Steffen

Your donations will help to keep this site alive and well, and continuing building binaries. Apache Lounge is not sponsored.
Post new topic   Forum Index -> Apache View previous topic :: View next topic
Reply to topic   Topic: Preventing Clickjacking
Author
gazzafield



Joined: 11 Apr 2017
Posts: 4
Location: UK, Glasgow

PostPosted: Tue 11 Apr '17 16:02    Post subject: Preventing Clickjacking Reply with quote

OK, so, had the usual Google around to see how to stop it as it appears my web server is open to clickjacking. The standard response is to add the following line to the /etc/apache2/apache2.conf file:-

Header always append X-Frame-Options

So, my rather simple question is, where? Where does it go in the file? The beginning? The end? Anywhere I like?
Back to top
Steffen
Moderator


Joined: 15 Oct 2005
Posts: 3058
Location: Hilversum, NL, EU

PostPosted: Tue 11 Apr '17 17:00    Post subject: Reply with quote

Anywhere
Back to top
gazzafield



Joined: 11 Apr 2017
Posts: 4
Location: UK, Glasgow

PostPosted: Wed 12 Apr '17 11:15    Post subject: Reply with quote

Tried that. Popped it in at the end of the file and then my Apache Service fails to restart. Thoughts?
Back to top
admin
Site Admin


Joined: 15 Oct 2005
Posts: 679

PostPosted: Wed 12 Apr '17 11:48    Post subject: Reply with quote

Did you enabled mod_header ?

Uncomment:

LoadModule headers_module modules/mod_headers.so
Back to top
gary s



Joined: 31 Mar 2017
Posts: 5
Location: usa, Story

PostPosted: Mon 17 Apr '17 21:24    Post subject: I guess I am confussed Reply with quote

I thought that click jacking is something you as the host would do to the user, not something that would be done to your server.
Back to top
C0nw0nk



Joined: 07 Oct 2013
Posts: 241
Location: United Kingdom, London

PostPosted: Tue 18 Apr '17 19:02    Post subject: Reply with quote

Clickjacking is when proxies/browsers other sites javascript etc, frame your website and strip elements from your pages and basically pretend your website is their website (inserting their own ads etc.)

https://www.owasp.org/index.php/Clickjacking_Defense_Cheat_Sheet#Best-for-now_Legacy_Browser_Frame_Breaking_Script

Read more on the OWASP security page : https://www.owasp.org/index.php/Clickjacking_Defense_Cheat_Sheet#Defending_with_X-Frame-Options_Response_Headers
Back to top
glsmith
Moderator


Joined: 16 Oct 2007
Posts: 2268
Location: Sun Diego, USA

PostPosted: Wed 19 Apr '17 0:03    Post subject: Reply with quote

This site hit my site yesterday so I checked it out. Besides scanning your server's headers it has some decent easy to read information on setting them for security.

https://securityheaders.io
Back to top


Reply to topic   Topic: Preventing Clickjacking View previous topic :: View next topic
Post new topic   Forum Index -> Apache