-1

Everytime I try to access this url http://mysite.com/somefile.php?url=http://google.com

I get Forbidden error, how I can solve this issue using .htaccess file. I am on shared hosting so all I can do it edit the .htaccess file and nothing else. Please tell me solution that can be implemented using the .htaccess file.

hsinxh
  • 143
  • 2
  • 10

1 Answers1

1

You're probably getting bitten by your hosting provider's mod_security rules; the pattern of your URL is a common one associated with attempting to exploit PHP file include vulnerabilities, which are (still, unfortunately) one of the most common and easy to exploit vulnerability classes.

You can talk to your provider, or fix your application.

womble
  • 96,255
  • 29
  • 175
  • 230